maybeWhen<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>(
  1. TResult $default(
    1. BorderSide top,
    2. BorderSide right,
    3. BorderSide bottom,
    4. BorderSide left,
    5. BorderSide horizontalInside,
    6. BorderSide verticalInside,
    7. BorderRadius borderRadius
    )?,
  2. {TResult all(
    1. Color color,
    2. double width,
    3. BorderStyle style,
    4. BorderRadius borderRadius
    )?,
  3. TResult symmetric(
    1. BorderSide inside,
    2. BorderSide outside
    )?,
  4. required TResult orElse(
      )}
    )
    @optionalTypeArgs, inherited

    Implementation

    @optionalTypeArgs
    TResult maybeWhen<TResult extends Object?>(
      TResult Function(
              BorderSide top,
              BorderSide right,
              BorderSide bottom,
              BorderSide left,
              BorderSide horizontalInside,
              BorderSide verticalInside,
              BorderRadius borderRadius)?
          $default, {
      TResult Function(Color color, double width, BorderStyle style,
              BorderRadius borderRadius)?
          all,
      TResult Function(BorderSide inside, BorderSide outside)? symmetric,
      required TResult orElse(),
    }) =>
        throw _privateConstructorUsedError;