Button constructor

const Button({
  1. Key? key,
  2. BorderSide border = _defaultBorder,
  3. Widget? child,
  4. Color? color,
  5. VoidCallback? onPressed,
})

Buttons are clickable items used to perform an action.

Implementation

const Button({
  super.key,
  this.border = _defaultBorder,
  this.child,
  this.color,
  this.onPressed,
});