maybeMap<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
  1. TResult images(
    1. UPostEmbedImages value
    )?,
  2. TResult video(
    1. UPostEmbedVideo value
    )?,
  3. TResult external(
    1. UPostEmbedExternal value
    )?,
  4. TResult record(
    1. UPostEmbedRecord value
    )?,
  5. TResult recordWithMedia(
    1. UPostEmbedRecordWithMedia value
    )?,
  6. TResult unknown(
    1. UPostEmbedUnknown value
    )?,
  7. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
  TResult Function(UPostEmbedImages value)? images,
  TResult Function(UPostEmbedVideo value)? video,
  TResult Function(UPostEmbedExternal value)? external,
  TResult Function(UPostEmbedRecord value)? record,
  TResult Function(UPostEmbedRecordWithMedia value)? recordWithMedia,
  TResult Function(UPostEmbedUnknown value)? unknown,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;