LegacyOutlineButton constructor
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,
- BorderSide? borderSide,
- Color? disabledBorderColor,
- Color? highlightedBorderColor,
- EdgeInsetsGeometry? padding,
- VisualDensity? visualDensity,
- ShapeBorder? shape,
- Clip clipBehavior = Clip.none,
- FocusNode? focusNode,
- bool autofocus = false,
- MaterialTapTargetSize? materialTapTargetSize,
- 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,
);