EmbedExternalViewArticlePatterns extension
Adds pattern-matching-related methods to EmbedExternalViewArticle.
Methods
-
map<
TResult extends Object?> (TResult $default(_EmbedExternalViewArticle value)) → TResult -
Available on EmbedExternalViewArticle, provided by the EmbedExternalViewArticlePatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_EmbedExternalViewArticle value)?) → TResult? -
Available on EmbedExternalViewArticle, provided by the EmbedExternalViewArticlePatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_EmbedExternalViewArticle value)?, {required TResult orElse()}) → TResult -
Available on EmbedExternalViewArticle, provided by the EmbedExternalViewArticlePatterns 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, EmbedExternalViewArticlePublication? publisher, int? readingTime, int? likeCount, List<ProfileViewBasic> ? likers, Map<String, dynamic> ? $unknown)?, {required TResult orElse()}) → TResult -
Available on EmbedExternalViewArticle, provided by the EmbedExternalViewArticlePatterns 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, EmbedExternalViewArticlePublication? publisher, int? readingTime, int? likeCount, List<ProfileViewBasic> ? likers, Map<String, dynamic> ? $unknown)) → TResult -
Available on EmbedExternalViewArticle, provided by the EmbedExternalViewArticlePatterns 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, EmbedExternalViewArticlePublication? publisher, int? readingTime, int? likeCount, List<ProfileViewBasic> ? likers, Map<String, dynamic> ? $unknown)?) → TResult? -
Available on EmbedExternalViewArticle, provided by the EmbedExternalViewArticlePatterns extension
A variant ofwhenthat fallback to returningnull