whenOrNull<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult? whenOrNull<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
    )?}
)
@optionalTypeArgs, inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<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,
}) =>
    throw _privateConstructorUsedError;