ButtonVariance constructor
const
ButtonVariance({
- required ButtonStateProperty<
Decoration> decoration, - required ButtonStateProperty<
MouseCursor> mouseCursor, - required ButtonStateProperty<
EdgeInsetsGeometry> padding, - required ButtonStateProperty<
TextStyle> textStyle, - required ButtonStateProperty<
IconThemeData> iconTheme, - required ButtonStateProperty<
EdgeInsetsGeometry> margin,
Creates a custom ButtonVariance with the specified style properties.
All parameters are required ButtonStateProperty functions that resolve values based on the button's current state.
Implementation
const ButtonVariance({
required this.decoration,
required this.mouseCursor,
required this.padding,
required this.textStyle,
required this.iconTheme,
required this.margin,
});