UPostEmbed class

Implementers
Available extensions
Annotations
  • @freezed

Constructors

UPostEmbed.external({required External data})
const
factory
UPostEmbed.images({required Images data})
const
factory
UPostEmbed.record({required Record data})
const
factory
UPostEmbed.recordWithMedia({required RecordWithMedia data})
const
factory
UPostEmbed.unknown({required Map<String, dynamic> data})
const
factory
UPostEmbed.video({required Video data})
const
factory

Properties

data Object
no setterinherited
external External

Available on UPostEmbed, provided by the $UPostEmbedExtension extension

Returns this data as External.
no setter
externalOrNull External?

Available on UPostEmbed, provided by the $UPostEmbedExtension extension

Returns External if this data is External, otherwise null.
no setter
hashCode int
The hash code for this object.
no setterinherited
images Images

Available on UPostEmbed, provided by the $UPostEmbedExtension extension

Returns this data as Images.
no setter
imagesOrNull Images?

Available on UPostEmbed, provided by the $UPostEmbedExtension extension

Returns Images if this data is Images, otherwise null.
no setter
isExternal bool

Available on UPostEmbed, provided by the $UPostEmbedExtension extension

Returns true if this data is External, otherwise false.
no setter
isImages bool

Available on UPostEmbed, provided by the $UPostEmbedExtension extension

Returns true if this data is Images, otherwise false.
no setter
isNotExternal bool

Available on UPostEmbed, provided by the $UPostEmbedExtension extension

Returns true if this data is not External, otherwise false.
no setter
isNotImages bool

Available on UPostEmbed, provided by the $UPostEmbedExtension extension

Returns true if this data is not Images, otherwise false.
no setter
isNotRecord bool

Available on UPostEmbed, provided by the $UPostEmbedExtension extension

Returns true if this data is not Record, otherwise false.
no setter
isNotRecordWithMedia bool

Available on UPostEmbed, provided by the $UPostEmbedExtension extension

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

Available on UPostEmbed, provided by the $UPostEmbedExtension extension

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

Available on UPostEmbed, provided by the $UPostEmbedExtension extension

Returns true if this data is not Video, otherwise false.
no setter
isRecord bool

Available on UPostEmbed, provided by the $UPostEmbedExtension extension

Returns true if this data is Record, otherwise false.
no setter
isRecordWithMedia bool

Available on UPostEmbed, provided by the $UPostEmbedExtension extension

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

Available on UPostEmbed, provided by the $UPostEmbedExtension extension

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

Available on UPostEmbed, provided by the $UPostEmbedExtension extension

Returns true if this data is Video, otherwise false.
no setter
record Record

Available on UPostEmbed, provided by the $UPostEmbedExtension extension

Returns this data as Record.
no setter
recordOrNull Record?

Available on UPostEmbed, provided by the $UPostEmbedExtension extension

Returns Record if this data is Record, otherwise null.
no setter
recordWithMedia RecordWithMedia

Available on UPostEmbed, provided by the $UPostEmbedExtension extension

Returns this data as RecordWithMedia.
no setter
recordWithMediaOrNull RecordWithMedia?

Available on UPostEmbed, provided by the $UPostEmbedExtension extension

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

Available on UPostEmbed, provided by the $UPostEmbedExtension extension

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

Available on UPostEmbed, provided by the $UPostEmbedExtension extension

Returns JSON object if this data is unknown, otherwise null.
no setter
video Video

Available on UPostEmbed, provided by the $UPostEmbedExtension extension

Returns this data as Video.
no setter
videoOrNull Video?

Available on UPostEmbed, provided by the $UPostEmbedExtension extension

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

Methods

map<TResult extends Object?>({required TResult images(UPostEmbedImages value), required TResult video(UPostEmbedVideo value), required TResult external(UPostEmbedExternal value), required TResult record(UPostEmbedRecord value), required TResult recordWithMedia(UPostEmbedRecordWithMedia value), required TResult unknown(UPostEmbedUnknown value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? images(UPostEmbedImages value)?, TResult? video(UPostEmbedVideo value)?, TResult? external(UPostEmbedExternal value)?, TResult? record(UPostEmbedRecord value)?, TResult? recordWithMedia(UPostEmbedRecordWithMedia value)?, TResult? unknown(UPostEmbedUnknown value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult images(UPostEmbedImages value)?, TResult video(UPostEmbedVideo value)?, TResult external(UPostEmbedExternal value)?, TResult record(UPostEmbedRecord value)?, TResult recordWithMedia(UPostEmbedRecordWithMedia value)?, TResult unknown(UPostEmbedUnknown value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult images(Images data)?, TResult video(Video data)?, TResult external(External data)?, TResult record(Record data)?, TResult recordWithMedia(RecordWithMedia 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 UPostEmbed, provided by the $UPostEmbedExtension extension

Returns JSON representation.
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult images(Images data), required TResult video(Video data), required TResult external(External data), required TResult record(Record data), required TResult recordWithMedia(RecordWithMedia data), required TResult unknown(Map<String, dynamic> data)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? images(Images data)?, TResult? video(Video data)?, TResult? external(External data)?, TResult? record(Record data)?, TResult? recordWithMedia(RecordWithMedia data)?, TResult? unknown(Map<String, dynamic> data)?}) → TResult?
inherited

Operators

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