LedgerButton.tertiary1 constructor
const
LedgerButton.tertiary1({
- Key? key,
- required String trackLabel,
- bool enableTracking = true,
- String? label,
- String? prefixIconPath,
- String? suffixIconPath,
- String? package,
- VoidCallback? onPressed,
- LedgerButtonSize size = LedgerButtonSize.xtraLarge,
- bool loading = false,
- bool enable = true,
- Map<
String, dynamic> ? trackProperties, - String? semanticsLabel,
- Color? foregroundColor,
- Color? backgroundColor,
- Widget? labelWidget,
- TextStyle? textStyle,
- bool shrink = false,
- bool? enableFeedback,
Implementation
const LedgerButton.tertiary1({
super.key,
required this.trackLabel,
this.enableTracking = true,
this.label,
this.prefixIconPath,
this.suffixIconPath,
this.package,
this.onPressed,
this.size = LedgerButtonSize.xtraLarge,
this.loading = false,
this.enable = true,
this.trackProperties,
this.semanticsLabel,
this.foregroundColor,
this.backgroundColor,
this.labelWidget,
this.textStyle,
this.shrink = false,
this.enableFeedback,
}) : _type = _LedgerButtonType.tertiary1,
assert(
label != null || prefixIconPath != null || suffixIconPath != null,
'Label or icon must be provided.',
);