SafaehSheetActionButton constructor

const SafaehSheetActionButton({
  1. Key? key,
  2. required String label,
  3. required Animation<double> activity,
  4. required VoidCallback? onPressed,
  5. SafaehSheetActionState state = SafaehSheetActionState.ready,
  6. double cooldownProgress = 0,
  7. Color? color,
  8. Color? foregroundColor,
  9. Color? warningColor,
  10. List<String> stateLabels = const [],
  11. Widget? leading,
  12. Widget? trailing,
  13. bool reserveActionSpace = false,
  14. String? announcement,
  15. OutlinedBorder shape = const StadiumBorder(),
  16. double borderWidth = 2,
  17. Key? buttonKey,
  18. Key? activityKey,
  19. Key? glowKey,
})

Implementation

const SafaehSheetActionButton({
  super.key,
  required this.label,
  required this.activity,
  required this.onPressed,
  this.state = SafaehSheetActionState.ready,
  this.cooldownProgress = 0,
  this.color,
  this.foregroundColor,
  this.warningColor,
  this.stateLabels = const [],
  this.leading,
  this.trailing,
  this.reserveActionSpace = false,
  this.announcement,
  this.shape = const StadiumBorder(),
  this.borderWidth = 2,
  this.buttonKey,
  this.activityKey,
  this.glowKey,
}) : assert(borderWidth >= 0);