whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult? video(
    1. String? url,
    2. File? file
    )?,
  2. TResult? image(
    1. String? url,
    2. File? file
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult? Function(String? url, File? file)? video,
  TResult? Function(String? url, File? file)? image,
}) =>
    throw _privateConstructorUsedError;