RecordViewDetailPatterns extension
Adds pattern-matching-related methods to RecordViewDetail.
Methods
-
map<
TResult extends Object?> (TResult $default(_RecordViewDetail value)) → TResult -
Available on RecordViewDetail, provided by the RecordViewDetailPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_RecordViewDetail value)?) → TResult? -
Available on RecordViewDetail, provided by the RecordViewDetailPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_RecordViewDetail value)?, {required TResult orElse()}) → TResult -
Available on RecordViewDetail, provided by the RecordViewDetailPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String $type, AtUri uri, String cid, Map< String, dynamic> value, List<BlobView> blobs, List<Label> ? labels, DateTime indexedAt, ModerationDetail moderation, RepoView repo, Map<String, dynamic> ? $unknown)?, {required TResult orElse()}) → TResult -
Available on RecordViewDetail, provided by the RecordViewDetailPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
when<
TResult extends Object?> (TResult $default(String $type, AtUri uri, String cid, Map< String, dynamic> value, List<BlobView> blobs, List<Label> ? labels, DateTime indexedAt, ModerationDetail moderation, RepoView repo, Map<String, dynamic> ? $unknown)) → TResult -
Available on RecordViewDetail, provided by the RecordViewDetailPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String $type, AtUri uri, String cid, Map< String, dynamic> value, List<BlobView> blobs, List<Label> ? labels, DateTime indexedAt, ModerationDetail moderation, RepoView repo, Map<String, dynamic> ? $unknown)?) → TResult? -
Available on RecordViewDetail, provided by the RecordViewDetailPatterns extension
A variant ofwhenthat fallback to returningnull