when<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult when<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. {required TResult all(
    1. Color color,
    2. double width,
    3. BorderStyle style,
    4. BorderRadius borderRadius
    ),
  3. required TResult symmetric(
    1. BorderSide inside,
    2. BorderSide outside
    )}
)
@optionalTypeArgs, inherited

Implementation

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