LegacyOutlineButton constructor

const LegacyOutlineButton({
  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. BorderSide? borderSide,
  15. Color? disabledBorderColor,
  16. Color? highlightedBorderColor,
  17. EdgeInsetsGeometry? padding,
  18. VisualDensity? visualDensity,
  19. ShapeBorder? shape,
  20. Clip clipBehavior = Clip.none,
  21. FocusNode? focusNode,
  22. bool autofocus = false,
  23. MaterialTapTargetSize? materialTapTargetSize,
  24. Widget? child,
})

Create an outline button.

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

Implementation

const LegacyOutlineButton({
  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,
  this.borderSide,
  this.disabledBorderColor,
  this.highlightedBorderColor,
  EdgeInsetsGeometry? padding,
  VisualDensity? visualDensity,
  ShapeBorder? shape,
  Clip clipBehavior = Clip.none,
  FocusNode? focusNode,
  bool autofocus = false,
  MaterialTapTargetSize? materialTapTargetSize,
  Widget? child,
})  : assert(highlightElevation == null || highlightElevation >= 0.0),
      assert(clipBehavior != null),
      assert(autofocus != null),
      super(
        key: key,
        onPressed: onPressed,
        onLongPress: onLongPress,
        mouseCursor: mouseCursor,
        textTheme: textTheme,
        textColor: textColor,
        disabledTextColor: disabledTextColor,
        color: color,
        focusColor: focusColor,
        hoverColor: hoverColor,
        highlightColor: highlightColor,
        splashColor: splashColor,
        highlightElevation: highlightElevation,
        padding: padding,
        visualDensity: visualDensity,
        shape: shape,
        clipBehavior: clipBehavior,
        focusNode: focusNode,
        materialTapTargetSize: materialTapTargetSize,
        autofocus: autofocus,
        child: child,
      );