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 = Clip.none,
  10. required Widget child,
  11. AlignmentGeometry? iconAlignment,
})

Implementation

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