maybeWhen<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>(
  1. {TResult circular(
    1. double radius
    )?,
  2. TResult elliptical(
    1. double x,
    2. double y
    )?,
  3. required TResult orElse(
      )}
    )
    @optionalTypeArgs, inherited

    Implementation

    @optionalTypeArgs
    TResult maybeWhen<TResult extends Object?>({
      TResult Function(double radius)? circular,
      TResult Function(double x, double y)? elliptical,
      required TResult orElse(),
    }) =>
        throw _privateConstructorUsedError;