ProfileViewBasicPatterns extension
Adds pattern-matching-related methods to ProfileViewBasic.
Methods
-
map<
TResult extends Object?> (TResult $default(_ProfileViewBasic value)) → TResult -
Available on ProfileViewBasic, provided by the ProfileViewBasicPatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_ProfileViewBasic value)?) → TResult? -
Available on ProfileViewBasic, provided by the ProfileViewBasicPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_ProfileViewBasic value)?, {required TResult orElse()}) → TResult -
Available on ProfileViewBasic, provided by the ProfileViewBasicPatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(String $type, String did, String handle, String? displayName, String? avatar, ProfileAssociated? associated, ViewerState? viewer, List< Label> ? labels, bool? chatDisabled, VerificationState? verification, Map<String, dynamic> ? $unknown)?, {required TResult orElse()}) → TResult -
Available on ProfileViewBasic, provided by the ProfileViewBasicPatterns extension
A variant ofwhen
that fallback to anorElse
callback. -
when<
TResult extends Object?> (TResult $default(String $type, String did, String handle, String? displayName, String? avatar, ProfileAssociated? associated, ViewerState? viewer, List< Label> ? labels, bool? chatDisabled, VerificationState? verification, Map<String, dynamic> ? $unknown)) → TResult -
Available on ProfileViewBasic, provided by the ProfileViewBasicPatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String $type, String did, String handle, String? displayName, String? avatar, ProfileAssociated? associated, ViewerState? viewer, List< Label> ? labels, bool? chatDisabled, VerificationState? verification, Map<String, dynamic> ? $unknown)?) → TResult? -
Available on ProfileViewBasic, provided by the ProfileViewBasicPatterns extension
A variant ofwhen
that fallback to returningnull