ArticlePatterns extension
Adds pattern-matching-related methods to Article.
- on
Methods
-
map<
TResult extends Object?> (TResult $default(_Article value)) → TResult -
Available on Article, provided by the ArticlePatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_Article value)?) → TResult? -
Available on Article, provided by the ArticlePatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_Article value)?, {required TResult orElse()}) → TResult -
Available on Article, provided by the ArticlePatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(AuthorV2? author, List< Comment> ? commentList, String? content, String? contentHtml, String? excerpt, String? excerptHtml, String? handle, String? id, ShopifyImage? image, String? publishedAt, List<String> ? tags, String? title, String? onlineStoreUrl)?, {required TResult orElse()}) → TResult -
Available on Article, provided by the ArticlePatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
when<
TResult extends Object?> (TResult $default(AuthorV2? author, List< Comment> ? commentList, String? content, String? contentHtml, String? excerpt, String? excerptHtml, String? handle, String? id, ShopifyImage? image, String? publishedAt, List<String> ? tags, String? title, String? onlineStoreUrl)) → TResult -
Available on Article, provided by the ArticlePatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(AuthorV2? author, List< Comment> ? commentList, String? content, String? contentHtml, String? excerpt, String? excerptHtml, String? handle, String? id, ShopifyImage? image, String? publishedAt, List<String> ? tags, String? title, String? onlineStoreUrl)?) → TResult? -
Available on Article, provided by the ArticlePatterns extension
A variant ofwhenthat fallback to returningnull