map<TResult extends Object?> method Null safety

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

Implementation

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