EmbedExternalViewLivestreamPatterns extension
Adds pattern-matching-related methods to EmbedExternalViewLivestream.
Methods
-
map<
TResult extends Object?> (TResult $default(_EmbedExternalViewLivestream value)) → TResult -
Available on EmbedExternalViewLivestream, provided by the EmbedExternalViewLivestreamPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_EmbedExternalViewLivestream value)?) → TResult? -
Available on EmbedExternalViewLivestream, provided by the EmbedExternalViewLivestreamPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_EmbedExternalViewLivestream value)?, {required TResult orElse()}) → TResult -
Available on EmbedExternalViewLivestream, provided by the EmbedExternalViewLivestreamPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String $type, String uri, String title, String description, DateTime? createdAt, DateTime? updatedAt, List< Label> ? labels, List<RepoStrongRef> ? associatedRefs, List<ProfileViewBasic> ? associatedProfiles, String? image, bool active, DateTime? startedAt, DateTime? endedAt, Map<String, dynamic> ? $unknown)?, {required TResult orElse()}) → TResult -
Available on EmbedExternalViewLivestream, provided by the EmbedExternalViewLivestreamPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
when<
TResult extends Object?> (TResult $default(String $type, String uri, String title, String description, DateTime? createdAt, DateTime? updatedAt, List< Label> ? labels, List<RepoStrongRef> ? associatedRefs, List<ProfileViewBasic> ? associatedProfiles, String? image, bool active, DateTime? startedAt, DateTime? endedAt, Map<String, dynamic> ? $unknown)) → TResult -
Available on EmbedExternalViewLivestream, provided by the EmbedExternalViewLivestreamPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String $type, String uri, String title, String description, DateTime? createdAt, DateTime? updatedAt, List< Label> ? labels, List<RepoStrongRef> ? associatedRefs, List<ProfileViewBasic> ? associatedProfiles, String? image, bool active, DateTime? startedAt, DateTime? endedAt, Map<String, dynamic> ? $unknown)?) → TResult? -
Available on EmbedExternalViewLivestream, provided by the EmbedExternalViewLivestreamPatterns extension
A variant ofwhenthat fallback to returningnull