when<TResult extends Object?> method Null safety

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

Implementation

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