ServerGetSessionOutputPatterns extension
Adds pattern-matching-related methods to ServerGetSessionOutput.
Methods
-
map<
TResult extends Object?> (TResult $default(_ServerGetSessionOutput value)) → TResult -
Available on ServerGetSessionOutput, provided by the ServerGetSessionOutputPatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_ServerGetSessionOutput value)?) → TResult? -
Available on ServerGetSessionOutput, provided by the ServerGetSessionOutputPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_ServerGetSessionOutput value)?, {required TResult orElse()}) → TResult -
Available on ServerGetSessionOutput, provided by the ServerGetSessionOutputPatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(String handle, String did, String? email, bool? emailConfirmed, bool? emailAuthFactor, Map< String, dynamic> ? didDoc, bool? active, ServerGetSessionStatus? status, Map<String, dynamic> ? $unknown)?, {required TResult orElse()}) → TResult -
Available on ServerGetSessionOutput, provided by the ServerGetSessionOutputPatterns extension
A variant ofwhen
that fallback to anorElse
callback. -
when<
TResult extends Object?> (TResult $default(String handle, String did, String? email, bool? emailConfirmed, bool? emailAuthFactor, Map< String, dynamic> ? didDoc, bool? active, ServerGetSessionStatus? status, Map<String, dynamic> ? $unknown)) → TResult -
Available on ServerGetSessionOutput, provided by the ServerGetSessionOutputPatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String handle, String did, String? email, bool? emailConfirmed, bool? emailAuthFactor, Map< String, dynamic> ? didDoc, bool? active, ServerGetSessionStatus? status, Map<String, dynamic> ? $unknown)?) → TResult? -
Available on ServerGetSessionOutput, provided by the ServerGetSessionOutputPatterns extension
A variant ofwhen
that fallback to returningnull