ButtonStyleButtonModifier constructor

const ButtonStyleButtonModifier({
  1. Key? key,
  2. Key? modifierKey,
  3. Widget? child,
  4. required VoidCallback? onPressed,
  5. required VoidCallback? onLongPress,
  6. required ValueChanged<bool>? onHover,
  7. required ValueChanged<bool>? onFocusChange,
  8. required ButtonStyle? style,
  9. required FocusNode? focusNode,
  10. required bool autofocus,
  11. required Clip clipBehavior,
  12. MaterialStatesController? statesController,
})

Abstract const constructor. This constructor enables subclasses to provide const constructors so that they can be used in const expressions.

Implementation

const ButtonStyleButtonModifier({
  super.key,
  super.modifierKey,
  super.child,
  required this.onPressed,
  required this.onLongPress,
  required this.onHover,
  required this.onFocusChange,
  required this.style,
  required this.focusNode,
  required this.autofocus,
  required this.clipBehavior,
  this.statesController,
});