maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult file(
    1. File file
    )?,
  2. TResult network(
    1. Uri uri
    )?,
  3. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function(File file)? file,
  TResult Function(Uri uri)? network,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;