TButton constructor
const
TButton({
- Key? key,
- TButtonTheme? theme,
- TButtonType? type,
- TButtonSize? size,
- Color? color,
- bool loading = false,
- String loadingText = 'Loading...',
- IconData? icon,
- String? text,
- String? tooltip,
- VoidCallback? onTap,
- dynamic onPressed()?,
- bool active = false,
- Widget? child,
Implementation
const TButton({
super.key,
this.theme,
this.type,
this.size,
this.color,
this.loading = false,
this.loadingText = 'Loading...',
this.icon,
this.text,
this.tooltip,
this.onTap,
this.onPressed,
this.active = false,
this.child,
}) : assert(theme == null || (type == null && size == null), 'If theme is provided, type and size must be null.');