maybeMap<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
  1. TResult cm(
    1. Centimeter value
    )?,
  2. TResult inch(
    1. Inch value
    )?,
  3. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
  TResult Function(Centimeter value)? cm,
  TResult Function(Inch value)? inch,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;