when<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult when<TResult extends Object?>(
  1. TResult $default(
    1. double left,
    2. double top,
    3. double right,
    4. double bottom
    ),
  2. {required TResult only(
    1. double left,
    2. double top,
    3. double right,
    4. double bottom
    ),
  3. required TResult all(
    1. double value
    ),
  4. required TResult symmetric(
    1. double vertical,
    2. double horizontal
    )}
)
@optionalTypeArgs, inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>(
  TResult Function(double left, double top, double right, double bottom)
      $default, {
  required TResult Function(
          double left, double top, double right, double bottom)
      only,
  required TResult Function(double value) all,
  required TResult Function(double vertical, double horizontal) symmetric,
}) =>
    throw _privateConstructorUsedError;