Button constructor

Button({
  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. MaterialStatesController? statesController,
  11. ButtonType? type,
  12. bool square = false,
  13. double? radius = 15,
  14. Size? fixedSize,
  15. BorderSide? side,
  16. TextStyle? textStyle,
  17. Color? backgroundColor,
  18. Color? foregroundColor,
  19. Color? overlayColor,
  20. Color? shadowColor,
  21. Color? surfaceTintColor,
  22. double? elevation,
  23. EdgeInsetsGeometry? padding,
  24. Size? minimumSize,
  25. Size? maximumSize,
  26. OutlinedBorder? shape,
  27. MouseCursor? mouseCursor,
  28. VisualDensity? visualDensity,
  29. MaterialTapTargetSize? tapTargetSize,
  30. Duration? animationDuration,
  31. bool? enableFeedback,
  32. AlignmentGeometry? alignment,
  33. InteractiveInkFeatureFactory? splashFactory,
  34. required Widget? child,
})

Implementation

Button({
  super.key,
  required super.onPressed,
  super.onLongPress,
  super.onHover,
  super.onFocusChange,
  super.style,
  super.focusNode,
  super.autofocus = false,
  super.clipBehavior = Clip.none,
  super.statesController,
  this.type,

  /// Style

  this.square = false,
  this.radius = 15,
  this.fixedSize,
  this.side,
  this.textStyle,
  this.backgroundColor,
  this.foregroundColor,
  this.overlayColor,
  this.shadowColor,
  this.surfaceTintColor,
  this.elevation,
  this.padding,
  this.minimumSize,
  this.maximumSize,
  this.shape,
  this.mouseCursor,
  this.visualDensity,
  this.tapTargetSize,
  this.animationDuration,
  this.enableFeedback,
  this.alignment,
  this.splashFactory,

  /// end Style
  required super.child,
});