TButton constructor

const TButton({
  1. Key? key,
  2. TButtonTheme? theme,
  3. TButtonType? type,
  4. TButtonSize? size,
  5. Color? color,
  6. bool loading = false,
  7. String loadingText = 'Loading...',
  8. IconData? icon,
  9. String? text,
  10. String? tooltip,
  11. VoidCallback? onTap,
  12. dynamic onPressed(
    1. TButtonPressOptions
    )?,
  13. bool active = false,
  14. 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.');