LedgerButton.tertiary1 constructor

const LedgerButton.tertiary1({
  1. Key? key,
  2. required String trackLabel,
  3. bool enableTracking = true,
  4. String? label,
  5. String? prefixIconPath,
  6. String? suffixIconPath,
  7. String? package,
  8. VoidCallback? onPressed,
  9. LedgerButtonSize size = LedgerButtonSize.xtraLarge,
  10. bool loading = false,
  11. bool enable = true,
  12. Map<String, dynamic>? trackProperties,
  13. String? semanticsLabel,
  14. Color? foregroundColor,
  15. Color? backgroundColor,
  16. Widget? labelWidget,
  17. TextStyle? textStyle,
  18. bool shrink = false,
  19. 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.',
      );