ViewerCollectionItemUnion class
Union class for paragraph item to be used in a ViewerParagraphSection.
- Implemented types
- Implementers
- Annotations
-
- @freezed
Constructors
- ViewerCollectionItemUnion.image({required ViewerImageCollectionItemStyle style, required String url, String? title, String? description, double? width, double? height})
-
Image paragraph item
constfactory
- ViewerCollectionItemUnion.text({String? title, String? description})
-
Text paragraph item
constfactory
- ViewerCollectionItemUnion.widget({required Widget widget})
-
Widget paragraph item
constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
searchableElements
→ List<
SearchableElement> -
Get all searchable elements
no setteroverride
Methods
-
map<
TResult extends Object?> ({required TResult text(ViewerTextCollectionItem value), required TResult image(ViewerImageCollectionItem value), required TResult widget(ViewerWidgetCollectionItem value)}) → TResult -
inherited
-
mapOrNull<
TResult extends Object?> ({TResult text(ViewerTextCollectionItem value)?, TResult image(ViewerImageCollectionItem value)?, TResult widget(ViewerWidgetCollectionItem value)?}) → TResult? -
inherited
-
maybeMap<
TResult extends Object?> ({TResult text(ViewerTextCollectionItem value)?, TResult image(ViewerImageCollectionItem value)?, TResult widget(ViewerWidgetCollectionItem value)?, required TResult orElse()}) → TResult -
inherited
-
maybeWhen<
TResult extends Object?> ({TResult text(String? title, String? description)?, TResult image(ViewerImageCollectionItemStyle style, String url, String? title, String? description, double? width, double? height)?, TResult widget(Widget widget)?, required TResult orElse()}) → TResult -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> ({required TResult text(String? title, String? description), required TResult image(ViewerImageCollectionItemStyle style, String url, String? title, String? description, double? width, double? height), required TResult widget(Widget widget)}) → TResult -
inherited
-
whenOrNull<
TResult extends Object?> ({TResult text(String? title, String? description)?, TResult image(ViewerImageCollectionItemStyle style, String url, String? title, String? description, double? width, double? height)?, TResult widget(Widget widget)?}) → TResult? -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited