when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult nothing(),
  2. required TResult just(
    1. T value
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function() nothing,
  required TResult Function(T value) just,
}) =>
    throw _privateConstructorUsedError;