whenOrNull<TResult extends Object?> method

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

Implementation

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