maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult images(
    1. Images data
    )?,
  2. TResult video(
    1. Video data
    )?,
  3. TResult external(
    1. External data
    )?,
  4. TResult record(
    1. Record data
    )?,
  5. TResult recordWithMedia(
    1. RecordWithMedia data
    )?,
  6. TResult unknown(
    1. Map<String, dynamic> data
    )?,
  7. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function(Images data)? images,
  TResult Function(Video data)? video,
  TResult Function(External data)? external,
  TResult Function(Record data)? record,
  TResult Function(RecordWithMedia data)? recordWithMedia,
  TResult Function(Map<String, dynamic> data)? unknown,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;