when<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult when<TResult extends Object?>(
  1. TResult $default(
    1. double size
    ),
  2. {required TResult height(
    1. double size
    ),
  3. required TResult maxHeight(
    1. double size
    ),
  4. required TResult minHeight(
    1. double size
    ),
  5. required TResult width(
    1. double size
    ),
  6. required TResult maxWidth(
    1. double size
    ),
  7. required TResult minWidth(
    1. double size
    ),
  8. required TResult gap(
    1. double size
    )}
)
@optionalTypeArgs, inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>(
  TResult Function(double size) $default, {
  required TResult Function(double size) height,
  required TResult Function(double size) maxHeight,
  required TResult Function(double size) minHeight,
  required TResult Function(double size) width,
  required TResult Function(double size) maxWidth,
  required TResult Function(double size) minWidth,
  required TResult Function(double size) gap,
}) =>
    throw _privateConstructorUsedError;