whenOrNull<TResult extends Object?> method

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

Implementation

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