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