when<TResult extends Object?> method

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

Implementation

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