ServerCheckAccountStatusOutputPatterns extension
Adds pattern-matching-related methods to ServerCheckAccountStatusOutput.
Methods
-
map<
TResult extends Object?> (TResult $default(_ServerCheckAccountStatusOutput value)) → TResult -
Available on ServerCheckAccountStatusOutput, provided by the ServerCheckAccountStatusOutputPatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_ServerCheckAccountStatusOutput value)?) → TResult? -
Available on ServerCheckAccountStatusOutput, provided by the ServerCheckAccountStatusOutputPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_ServerCheckAccountStatusOutput value)?, {required TResult orElse()}) → TResult -
Available on ServerCheckAccountStatusOutput, provided by the ServerCheckAccountStatusOutputPatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(bool activated, bool validDid, String repoCommit, String repoRev, int repoBlocks, int indexedRecords, int privateStateValues, int expectedBlobs, int importedBlobs, Map< String, dynamic> ? $unknown)?, {required TResult orElse()}) → TResult -
Available on ServerCheckAccountStatusOutput, provided by the ServerCheckAccountStatusOutputPatterns extension
A variant ofwhen
that fallback to anorElse
callback. -
when<
TResult extends Object?> (TResult $default(bool activated, bool validDid, String repoCommit, String repoRev, int repoBlocks, int indexedRecords, int privateStateValues, int expectedBlobs, int importedBlobs, Map< String, dynamic> ? $unknown)) → TResult -
Available on ServerCheckAccountStatusOutput, provided by the ServerCheckAccountStatusOutputPatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(bool activated, bool validDid, String repoCommit, String repoRev, int repoBlocks, int indexedRecords, int privateStateValues, int expectedBlobs, int importedBlobs, Map< String, dynamic> ? $unknown)?) → TResult? -
Available on ServerCheckAccountStatusOutput, provided by the ServerCheckAccountStatusOutputPatterns extension
A variant ofwhen
that fallback to returningnull