TButton constructor

const TButton({
  1. Key? key,
  2. TButtonType? type,
  3. TButtonSize? size,
  4. MaterialColor? color,
  5. bool block = false,
  6. bool loading = false,
  7. String loadingText = 'Loading...',
  8. IconData? icon,
  9. String? text,
  10. String? tooltip,
  11. dynamic onPressed(
    1. TButtonPressOptions
    )?,
  12. bool active = false,
  13. double? width,
  14. double? height,
  15. Widget? child,
  16. OutlinedBorder? shape,
})

Implementation

const TButton({
  super.key,
  this.type,
  this.size,
  this.color,
  this.block = false,
  this.loading = false,
  this.loadingText = 'Loading...',
  this.icon,
  this.text,
  this.tooltip,
  this.onPressed,
  this.active = false,
  this.width,
  this.height,
  this.child,
  this.shape,
});