whenOrNull<TResult extends Object?> method Null safety

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

Implementation

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