when<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult when<TResult extends Object?>(
  1. {required TResult border(
    1. BorderSide top,
    2. BorderSide right,
    3. BorderSide bottom,
    4. BorderSide left
    ),
  2. required TResult directional(
    1. BorderSide top,
    2. BorderSide start,
    3. BorderSide end,
    4. BorderSide bottom
    ),
  3. required TResult roundedRectangle(
    1. BorderSide side,
    2. BorderRadius borderRadius
    ),
  4. required TResult stadium(
    1. BorderSide side
    ),
  5. required TResult oval(
    1. BorderSide side,
    2. double eccentricity
    ),
  6. required TResult circle(
    1. BorderSide side,
    2. double eccentricity
    ),
  7. required TResult continuousRectangle(
    1. BorderSide side,
    2. BorderRadius borderRadius
    ),
  8. required TResult beveledRectangle(
    1. BorderSide side,
    2. BorderRadius borderRadius
    ),
  9. required TResult underlineInput(
    1. BorderSide side,
    2. BorderRadius borderRadius
    ),
  10. required TResult outlineInput(
    1. BorderSide side,
    2. BorderRadius borderRadius,
    3. double gapPadding
    ),
  11. required TResult noneInput(
      ),
    1. required TResult star(
      1. BorderSide side,
      2. double points,
      3. double innerRadiusRatio,
      4. double pointRounding,
      5. double valleyRounding,
      6. double rotation,
      7. double squash
      )}
    )
    @optionalTypeArgs, inherited

    Implementation

    @optionalTypeArgs
    TResult when<TResult extends Object?>({
      required TResult Function(BorderSide top, BorderSide right,
              BorderSide bottom, BorderSide left)
          border,
      required TResult Function(
              BorderSide top, BorderSide start, BorderSide end, BorderSide bottom)
          directional,
      required TResult Function(BorderSide side, BorderRadius borderRadius)
          roundedRectangle,
      required TResult Function(BorderSide side) stadium,
      required TResult Function(BorderSide side, double eccentricity) oval,
      required TResult Function(BorderSide side, double eccentricity) circle,
      required TResult Function(BorderSide side, BorderRadius borderRadius)
          continuousRectangle,
      required TResult Function(BorderSide side, BorderRadius borderRadius)
          beveledRectangle,
      required TResult Function(BorderSide side, BorderRadius borderRadius)
          underlineInput,
      required TResult Function(
              BorderSide side, BorderRadius borderRadius, double gapPadding)
          outlineInput,
      required TResult Function() noneInput,
      required TResult Function(
              BorderSide side,
              double points,
              double innerRadiusRatio,
              double pointRounding,
              double valleyRounding,
              double rotation,
              double squash)
          star,
    }) =>
        throw _privateConstructorUsedError;