maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<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
    )?,
  7. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<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,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;