CollectionContent class

Annotations
  • @freezed

Constructors

CollectionContent.article(Article article)
const
factory
CollectionContent.collection(Collection collection)
const
factory
CollectionContent.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>({required TResult article(_CollectionContentArticle value), required TResult collection(_CollectionContentCollection value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? article(_CollectionContentArticle value)?, TResult? collection(_CollectionContentCollection value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult article(_CollectionContentArticle value)?, TResult collection(_CollectionContentCollection value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult article(Article article)?, TResult collection(Collection collection)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult article(Article article), required TResult collection(Collection collection)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? article(Article article)?, TResult? collection(Collection collection)?}) → TResult?
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited