StarterPackViewPatterns extension
Adds pattern-matching-related methods to StarterPackView.
Methods
-
map<
TResult extends Object?> (TResult $default(_StarterPackView value)) → TResult -
Available on StarterPackView, provided by the StarterPackViewPatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_StarterPackView value)?) → TResult? -
Available on StarterPackView, provided by the StarterPackViewPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_StarterPackView value)?, {required TResult orElse()}) → TResult -
Available on StarterPackView, provided by the StarterPackViewPatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(String $type, AtUri uri, String cid, Map< String, dynamic> record, ProfileViewBasic creator, ListViewBasic? list, List<ListItemView> ? listItemsSample, List<GeneratorView> ? feeds, int? joinedWeekCount, int? joinedAllTimeCount, List<Label> ? labels, DateTime indexedAt, Map<String, dynamic> ? $unknown)?, {required TResult orElse()}) → TResult -
Available on StarterPackView, provided by the StarterPackViewPatterns extension
A variant ofwhen
that fallback to anorElse
callback. -
when<
TResult extends Object?> (TResult $default(String $type, AtUri uri, String cid, Map< String, dynamic> record, ProfileViewBasic creator, ListViewBasic? list, List<ListItemView> ? listItemsSample, List<GeneratorView> ? feeds, int? joinedWeekCount, int? joinedAllTimeCount, List<Label> ? labels, DateTime indexedAt, Map<String, dynamic> ? $unknown)) → TResult -
Available on StarterPackView, provided by the StarterPackViewPatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String $type, AtUri uri, String cid, Map< String, dynamic> record, ProfileViewBasic creator, ListViewBasic? list, List<ListItemView> ? listItemsSample, List<GeneratorView> ? feeds, int? joinedWeekCount, int? joinedAllTimeCount, List<Label> ? labels, DateTime indexedAt, Map<String, dynamic> ? $unknown)?) → TResult? -
Available on StarterPackView, provided by the StarterPackViewPatterns extension
A variant ofwhen
that fallback to returningnull