maybeMap<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult maybeMap<TResult extends Object?>(
  1. {TResult border(
    1. Border value
    )?,
  2. TResult directional(
    1. BorderDirectional value
    )?,
  3. TResult roundedRectangle(
    1. RoundedRectangleBorder value
    )?,
  4. TResult stadium(
    1. StadiumBorder value
    )?,
  5. TResult oval(
    1. OvalBorder value
    )?,
  6. TResult circle(
    1. CircleBorder value
    )?,
  7. TResult continuousRectangle(
    1. ContinuousRectangleBorder value
    )?,
  8. TResult beveledRectangle(
    1. BeveledRectangleBorder value
    )?,
  9. TResult underlineInput(
    1. UnderlineInputBorder value
    )?,
  10. TResult outlineInput(
    1. OutlineInputBorder value
    )?,
  11. TResult noneInput(
    1. InputBorderNone value
    )?,
  12. TResult star(
    1. StarBorder value
    )?,
  13. required TResult orElse(
      )}
    )
    @optionalTypeArgs, inherited

    Implementation

    @optionalTypeArgs
    TResult maybeMap<TResult extends Object?>({
      TResult Function(Border value)? border,
      TResult Function(BorderDirectional value)? directional,
      TResult Function(RoundedRectangleBorder value)? roundedRectangle,
      TResult Function(StadiumBorder value)? stadium,
      TResult Function(OvalBorder value)? oval,
      TResult Function(CircleBorder value)? circle,
      TResult Function(ContinuousRectangleBorder value)? continuousRectangle,
      TResult Function(BeveledRectangleBorder value)? beveledRectangle,
      TResult Function(UnderlineInputBorder value)? underlineInput,
      TResult Function(OutlineInputBorder value)? outlineInput,
      TResult Function(InputBorderNone value)? noneInput,
      TResult Function(StarBorder value)? star,
      required TResult orElse(),
    }) =>
        throw _privateConstructorUsedError;