TUIButton constructor

const TUIButton({
  1. Key? key,
  2. required TUIButtonType type,
  3. TUIButtonSize size = TUIButtonSize.m,
  4. String? label,
  5. IconData? iconData,
  6. TUIButtonIconPosition? iconPosition = TUIButtonIconPosition.left,
  7. required VoidCallback? onPressed,
  8. VoidCallback? onLongPress,
  9. double? height,
})

Implementation

const TUIButton({
  super.key,
  required this.type,
  this.size = TUIButtonSize.m,
  this.label,
  this.iconData,
  this.iconPosition = TUIButtonIconPosition.left,
  required this.onPressed,
  this.onLongPress,
  this.height,
}) : assert(label != null || iconData != null);