when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult cm(
    1. double value
    ),
  2. required TResult inch(
    1. double value,
    2. int graduations
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function(double value) cm,
  required TResult Function(double value, int graduations) inch,
}) =>
    throw _privateConstructorUsedError;