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 margin(
    1. double? left,
    2. double? top,
    3. double? right,
    4. double? bottom
    )?,
  3. TResult padding(
    1. double? left,
    2. double? top,
    3. double? right,
    4. double? bottom
    )?,
  4. 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)?
          margin,
      TResult Function(double? left, double? top, double? right, double? bottom)?
          padding,
      required TResult orElse(),
    }) =>
        throw _privateConstructorUsedError;