whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult? record(
    1. EmbedViewRecord data
    )?,
  2. TResult? images(
    1. EmbedViewImages data
    )?,
  3. TResult? external(
    1. EmbedViewExternal data
    )?,
  4. TResult? recordWithMedia(
    1. EmbedViewRecordWithMedia data
    )?,
  5. TResult? video(
    1. EmbedVideoView data
    )?,
  6. TResult? unknown(
    1. Map<String, dynamic> data
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult? Function(EmbedViewRecord data)? record,
  TResult? Function(EmbedViewImages data)? images,
  TResult? Function(EmbedViewExternal data)? external,
  TResult? Function(EmbedViewRecordWithMedia data)? recordWithMedia,
  TResult? Function(EmbedVideoView data)? video,
  TResult? Function(Map<String, dynamic> data)? unknown,
}) =>
    throw _privateConstructorUsedError;