mapOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
  1. TResult? imagesView(
    1. UPostViewEmbedImagesView value
    )?,
  2. TResult? videoView(
    1. UPostViewEmbedVideoView value
    )?,
  3. TResult? externalView(
    1. UPostViewEmbedExternalView value
    )?,
  4. TResult? recordView(
    1. UPostViewEmbedRecordView value
    )?,
  5. TResult? recordWithMediaView(
    1. UPostViewEmbedRecordWithMediaView value
    )?,
  6. TResult? unknown(
    1. UPostViewEmbedUnknown value
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
  TResult? Function(UPostViewEmbedImagesView value)? imagesView,
  TResult? Function(UPostViewEmbedVideoView value)? videoView,
  TResult? Function(UPostViewEmbedExternalView value)? externalView,
  TResult? Function(UPostViewEmbedRecordView value)? recordView,
  TResult? Function(UPostViewEmbedRecordWithMediaView value)?
      recordWithMediaView,
  TResult? Function(UPostViewEmbedUnknown value)? unknown,
}) =>
    throw _privateConstructorUsedError;