whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult? imagesView(
    1. ImagesView data
    )?,
  2. TResult? videoView(
    1. VideoView data
    )?,
  3. TResult? externalView(
    1. ExternalView data
    )?,
  4. TResult? recordView(
    1. RecordView data
    )?,
  5. TResult? recordWithMediaView(
    1. RecordWithMediaView data
    )?,
  6. TResult? unknown(
    1. Map<String, dynamic> data
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult? Function(ImagesView data)? imagesView,
  TResult? Function(VideoView data)? videoView,
  TResult? Function(ExternalView data)? externalView,
  TResult? Function(RecordView data)? recordView,
  TResult? Function(RecordWithMediaView data)? recordWithMediaView,
  TResult? Function(Map<String, dynamic> data)? unknown,
}) =>
    throw _privateConstructorUsedError;