StatusButton constructor

const StatusButton({
  1. required Future<bool> action(),
  2. required String label,
  3. bool actionOnInit = false,
  4. Key? key,
})

Creates a StatusButton.

When actionOnInit is true, the action starts as soon as the button is built.

Implementation

const StatusButton({
  required this.action,
  required this.label,
  this.actionOnInit = false,
  super.key,
});