ElevatedButton constructor

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

Create an ElevatedButton.

Implementation

const ElevatedButton({
  super.key,
  required super.onPressed,
  super.onLongPress,
  super.onHover,
  super.onFocusChange,
  super.style,
  super.focusNode,
  super.autofocus = false,
  super.clipBehavior,
  super.statesController,
  required super.child,
  super.iconAlignment,
});