maybeWhen<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult maybeWhen<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
    )?,
  5. required TResult orElse(
      )}
    )
    @optionalTypeArgs, inherited

    Implementation

    @optionalTypeArgs
    TResult maybeWhen<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,
      required TResult orElse(),
    }) =>
        throw _privateConstructorUsedError;