maybeWhen<TResult extends Object?> method Null safety

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

    Implementation

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