OutlineButton.icon constructor Null safety

  1. @Deprecated('Use OutlinedButton instead. See the migration guide in flutter.dev/go/material-button-migration-guide). ' 'This feature was deprecated after v1.26.0-18.0.pre.')
OutlineButton.icon(
  1. {Key? key,
  2. required VoidCallback? onPressed,
  3. VoidCallback? onLongPress,
  4. MouseCursor? mouseCursor,
  5. ButtonTextTheme? textTheme,
  6. Color? textColor,
  7. Color? disabledTextColor,
  8. Color? color,
  9. Color? focusColor,
  10. Color? hoverColor,
  11. Color? highlightColor,
  12. Color? splashColor,
  13. double? highlightElevation,
  14. Color? highlightedBorderColor,
  15. Color? disabledBorderColor,
  16. BorderSide? borderSide,
  17. EdgeInsetsGeometry? padding,
  18. VisualDensity? visualDensity,
  19. ShapeBorder? shape,
  20. Clip clipBehavior,
  21. FocusNode? focusNode,
  22. bool autofocus,
  23. MaterialTapTargetSize? materialTapTargetSize,
  24. required Widget icon,
  25. required Widget label}
)

Create an outline button from a pair of widgets that serve as the button's icon and label.

The icon and label are arranged in a row and padded by 12 logical pixels at the start, and 16 at the end, with an 8 pixel gap in between.

The highlightElevation argument must be null or a positive value. The icon, label, autofocus, and clipBehavior arguments must not be null.

Implementation

@Deprecated(
  'Use OutlinedButton instead. See the migration guide in flutter.dev/go/material-button-migration-guide). '
  'This feature was deprecated after v1.26.0-18.0.pre.',
)
factory OutlineButton.icon({
  Key? key,
  required VoidCallback? onPressed,
  VoidCallback? onLongPress,
  MouseCursor? mouseCursor,
  ButtonTextTheme? textTheme,
  Color? textColor,
  Color? disabledTextColor,
  Color? color,
  Color? focusColor,
  Color? hoverColor,
  Color? highlightColor,
  Color? splashColor,
  double? highlightElevation,
  Color? highlightedBorderColor,
  Color? disabledBorderColor,
  BorderSide? borderSide,
  EdgeInsetsGeometry? padding,
  VisualDensity? visualDensity,
  ShapeBorder? shape,
  Clip clipBehavior,
  FocusNode? focusNode,
  bool autofocus,
  MaterialTapTargetSize? materialTapTargetSize,
  required Widget icon,
  required Widget label,
}) = _OutlineButtonWithIcon;