OutlineButton constructor

const OutlineButton(
  1. {Key key,
  2. @required VoidCallback onPressed,
  3. VoidCallback onLongPress,
  4. ButtonTextTheme textTheme,
  5. Color textColor,
  6. Color disabledTextColor,
  7. Color color,
  8. Color focusColor,
  9. Color hoverColor,
  10. Color highlightColor,
  11. Color splashColor,
  12. double highlightElevation,
  13. BorderSide borderSide,
  14. Color disabledBorderColor,
  15. Color highlightedBorderColor,
  16. EdgeInsetsGeometry padding,
  17. VisualDensity visualDensity,
  18. ShapeBorder shape,
  19. Clip clipBehavior: Clip.none,
  20. FocusNode focusNode,
  21. bool autofocus: false,
  22. 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 OutlineButton({
  Key key,
  @required VoidCallback onPressed,
  VoidCallback onLongPress,
  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,
  Widget child,
}) : assert(highlightElevation == null || highlightElevation >= 0.0),
     assert(clipBehavior != null),
     assert(autofocus != null),
     super(
       key: key,
       onPressed: onPressed,
       onLongPress: onLongPress,
       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,
       autofocus: autofocus,
       child: child,
     );