SafaehSheetActionButton constructor
const
SafaehSheetActionButton({
- Key? key,
- required String label,
- required Animation<
double> activity, - required VoidCallback? onPressed,
- SafaehSheetActionState state = SafaehSheetActionState.ready,
- double cooldownProgress = 0,
- Color? color,
- Color? foregroundColor,
- Color? warningColor,
- List<
String> stateLabels = const [], - Widget? leading,
- Widget? trailing,
- bool reserveActionSpace = false,
- String? announcement,
- OutlinedBorder shape = const StadiumBorder(),
- double borderWidth = 2,
- Key? buttonKey,
- Key? activityKey,
- 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);