maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult imageDetails(
    1. ImageDetails data
    )?,
  2. TResult videoDetails(
    1. VideoDetails data
    )?,
  3. TResult unknown(
    1. Map<String, dynamic> data
    )?,
  4. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function(ImageDetails data)? imageDetails,
  TResult Function(VideoDetails data)? videoDetails,
  TResult Function(Map<String, dynamic> data)? unknown,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;