UPostViewEmbed class

Implementers
Available extensions
Annotations
  • @freezed

Constructors

UPostViewEmbed.externalView({required ExternalView data})
const
factory
UPostViewEmbed.imagesView({required ImagesView data})
const
factory
UPostViewEmbed.recordView({required RecordView data})
const
factory
UPostViewEmbed.recordWithMediaView({required RecordWithMediaView data})
const
factory
UPostViewEmbed.unknown({required Map<String, dynamic> data})
const
factory
UPostViewEmbed.videoView({required VideoView data})
const
factory

Properties

data Object
no setterinherited
externalView ExternalView

Available on UPostViewEmbed, provided by the $UPostViewEmbedExtension extension

Returns this data as ExternalView.
no setter
externalViewOrNull ExternalView?

Available on UPostViewEmbed, provided by the $UPostViewEmbedExtension extension

Returns ExternalView if this data is ExternalView, otherwise null.
no setter
hashCode int
The hash code for this object.
no setterinherited
imagesView ImagesView

Available on UPostViewEmbed, provided by the $UPostViewEmbedExtension extension

Returns this data as ImagesView.
no setter
imagesViewOrNull ImagesView?

Available on UPostViewEmbed, provided by the $UPostViewEmbedExtension extension

Returns ImagesView if this data is ImagesView, otherwise null.
no setter
isExternalView bool

Available on UPostViewEmbed, provided by the $UPostViewEmbedExtension extension

Returns true if this data is ExternalView, otherwise false.
no setter
isImagesView bool

Available on UPostViewEmbed, provided by the $UPostViewEmbedExtension extension

Returns true if this data is ImagesView, otherwise false.
no setter
isNotExternalView bool

Available on UPostViewEmbed, provided by the $UPostViewEmbedExtension extension

Returns true if this data is not ExternalView, otherwise false.
no setter
isNotImagesView bool

Available on UPostViewEmbed, provided by the $UPostViewEmbedExtension extension

Returns true if this data is not ImagesView, otherwise false.
no setter
isNotRecordView bool

Available on UPostViewEmbed, provided by the $UPostViewEmbedExtension extension

Returns true if this data is not RecordView, otherwise false.
no setter
isNotRecordWithMediaView bool

Available on UPostViewEmbed, provided by the $UPostViewEmbedExtension extension

Returns true if this data is not RecordWithMediaView, otherwise false.
no setter
isNotUnknown bool

Available on UPostViewEmbed, provided by the $UPostViewEmbedExtension extension

Returns true if this data is not unknown object, otherwise false.
no setter
isNotVideoView bool

Available on UPostViewEmbed, provided by the $UPostViewEmbedExtension extension

Returns true if this data is not VideoView, otherwise false.
no setter
isRecordView bool

Available on UPostViewEmbed, provided by the $UPostViewEmbedExtension extension

Returns true if this data is RecordView, otherwise false.
no setter
isRecordWithMediaView bool

Available on UPostViewEmbed, provided by the $UPostViewEmbedExtension extension

Returns true if this data is RecordWithMediaView, otherwise false.
no setter
isUnknown bool

Available on UPostViewEmbed, provided by the $UPostViewEmbedExtension extension

Returns true if this data is unknown object, otherwise false.
no setter
isVideoView bool

Available on UPostViewEmbed, provided by the $UPostViewEmbedExtension extension

Returns true if this data is VideoView, otherwise false.
no setter
recordView RecordView

Available on UPostViewEmbed, provided by the $UPostViewEmbedExtension extension

Returns this data as RecordView.
no setter
recordViewOrNull RecordView?

Available on UPostViewEmbed, provided by the $UPostViewEmbedExtension extension

Returns RecordView if this data is RecordView, otherwise null.
no setter
recordWithMediaView RecordWithMediaView

Available on UPostViewEmbed, provided by the $UPostViewEmbedExtension extension

Returns this data as RecordWithMediaView.
no setter
recordWithMediaViewOrNull RecordWithMediaView?

Available on UPostViewEmbed, provided by the $UPostViewEmbedExtension extension

Returns RecordWithMediaView if this data is RecordWithMediaView, otherwise null.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unknown Map<String, dynamic>

Available on UPostViewEmbed, provided by the $UPostViewEmbedExtension extension

Returns this data as JSON object.
no setter
unknownOrNull Map<String, dynamic>?

Available on UPostViewEmbed, provided by the $UPostViewEmbedExtension extension

Returns JSON object if this data is unknown, otherwise null.
no setter
videoView VideoView

Available on UPostViewEmbed, provided by the $UPostViewEmbedExtension extension

Returns this data as VideoView.
no setter
videoViewOrNull VideoView?

Available on UPostViewEmbed, provided by the $UPostViewEmbedExtension extension

Returns VideoView if this data is VideoView, otherwise null.
no setter

Methods

map<TResult extends Object?>({required TResult imagesView(UPostViewEmbedImagesView value), required TResult videoView(UPostViewEmbedVideoView value), required TResult externalView(UPostViewEmbedExternalView value), required TResult recordView(UPostViewEmbedRecordView value), required TResult recordWithMediaView(UPostViewEmbedRecordWithMediaView value), required TResult unknown(UPostViewEmbedUnknown value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? imagesView(UPostViewEmbedImagesView value)?, TResult? videoView(UPostViewEmbedVideoView value)?, TResult? externalView(UPostViewEmbedExternalView value)?, TResult? recordView(UPostViewEmbedRecordView value)?, TResult? recordWithMediaView(UPostViewEmbedRecordWithMediaView value)?, TResult? unknown(UPostViewEmbedUnknown value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult imagesView(UPostViewEmbedImagesView value)?, TResult videoView(UPostViewEmbedVideoView value)?, TResult externalView(UPostViewEmbedExternalView value)?, TResult recordView(UPostViewEmbedRecordView value)?, TResult recordWithMediaView(UPostViewEmbedRecordWithMediaView value)?, TResult unknown(UPostViewEmbedUnknown value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult imagesView(ImagesView data)?, TResult videoView(VideoView data)?, TResult externalView(ExternalView data)?, TResult recordView(RecordView data)?, TResult recordWithMediaView(RecordWithMediaView data)?, TResult unknown(Map<String, dynamic> data)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>

Available on UPostViewEmbed, provided by the $UPostViewEmbedExtension extension

Returns JSON representation.
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult imagesView(ImagesView data), required TResult videoView(VideoView data), required TResult externalView(ExternalView data), required TResult recordView(RecordView data), required TResult recordWithMediaView(RecordWithMediaView data), required TResult unknown(Map<String, dynamic> data)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? imagesView(ImagesView data)?, TResult? videoView(VideoView data)?, TResult? externalView(ExternalView data)?, TResult? recordView(RecordView data)?, TResult? recordWithMediaView(RecordWithMediaView data)?, TResult? unknown(Map<String, dynamic> data)?}) → TResult?
inherited

Operators

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