when<TResult extends Object?> method

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

Implementation

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