TUIButton constructor
const
TUIButton({
- Key? key,
- required TUIButtonType type,
- TUIButtonSize size = TUIButtonSize.m,
- String? label,
- IconData? iconData,
- TUIButtonIconPosition? iconPosition = TUIButtonIconPosition.left,
- required VoidCallback? onPressed,
- VoidCallback? onLongPress,
- 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);