CLSoftButton.danger constructor
CLSoftButton.danger({
- required String text,
- required dynamic onTap(),
- required BuildContext context,
- IconAlignment iconAlignment = IconAlignment.start,
- IconData? icon,
- List<
List> ? hugeIcon, - double? width,
- bool needConfirmation = false,
- String? confirmationMessage,
- bool isCompact = false,
Implementation
factory CLSoftButton.danger({
required String text,
required Function() onTap,
required BuildContext context,
IconAlignment iconAlignment = IconAlignment.start,
IconData? icon,
List<List<dynamic>>? hugeIcon,
double? width,
bool needConfirmation = false,
String? confirmationMessage,
bool isCompact = false,
}) {
return CLSoftButton._colored(
text: text,
color: CLTheme.of(context).danger,
onTap: onTap,
context: context,
iconAlignment: iconAlignment,
iconData: icon,
hugeIcon: hugeIcon,
width: width,
needConfirmation: needConfirmation,
confirmationMessage: confirmationMessage,
isCompact: isCompact,
);
}