ESButton constructor

const ESButton(
  1. String caption, {
  2. Key? key,
  3. required dynamic onPressed(),
  4. double? width = double.infinity,
})

An edge rounded button extended from ElevatedButton

caption is the text displayed on button

onPressed is the event triggerd when button is pressed/clicked

width to set width of the button. Default to full width of parent

Implementation

const ESButton(this.caption,
    {Key? key, required this.onPressed, this.width = double.infinity})
    : super(key: key);