TermosButton constructor

const TermosButton({
  1. Key? key,
  2. required Text label,
  3. VoidCallback? onTap,
  4. Widget? icon,
  5. bool enabled = true,
  6. bool isLoading = false,
  7. String? loadingLabel,
  8. bool typingLoadingTransition = false,
  9. bool savedState = false,
  10. bool allowTapWhenSaved = false,
  11. String? savedLabel,
  12. Widget? savedIcon,
  13. double? height,
  14. double? width,
  15. bool expandWidth = true,
  16. Color? color,
  17. BorderRadius? borderRadius,
})

Implementation

const TermosButton({
  super.key,
  required this.label,
  this.onTap,
  this.icon,
  this.enabled = true,
  this.isLoading = false,
  this.loadingLabel,
  this.typingLoadingTransition = false,
  this.savedState = false,
  this.allowTapWhenSaved = false,
  this.savedLabel,
  this.savedIcon,
  this.height,
  this.width,
  this.expandWidth = true,
  this.color,
  this.borderRadius,
});