when<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult when<TResult extends Object?>(
  1. {required TResult all(
    1. Radius radius
    ),
  2. required TResult circular(
    1. double radius
    ),
  3. required TResult vertical(
    1. Radius top,
    2. Radius bottom
    ),
  4. required TResult horizontal(
    1. Radius left,
    2. Radius right
    ),
  5. required TResult only(
    1. Radius? topLeft,
    2. Radius? topRight,
    3. Radius? bottomLeft,
    4. Radius? bottomRight
    )}
)
@optionalTypeArgs, inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function(Radius radius) all,
  required TResult Function(double radius) circular,
  required TResult Function(Radius top, Radius bottom) vertical,
  required TResult Function(Radius left, Radius right) horizontal,
  required TResult Function(Radius? topLeft, Radius? topRight,
          Radius? bottomLeft, Radius? bottomRight)
      only,
}) =>
    throw _privateConstructorUsedError;