Button constructor
Button(
- Object? label, {
- ButtonVariant variant = ButtonVariant.filled,
- String? icon,
- double? width,
- double? height,
- ColorToken? color,
- ColorToken? textColor,
- double? borderRadius,
- Object? padding,
- bool disabled = false,
- Object? onTap,
- String? name,
- Object? visible,
Implementation
Button(
Object? label, {
this.variant = ButtonVariant.filled,
this.icon,
this.width,
this.height,
this.color,
this.textColor,
this.borderRadius,
this.padding,
this.disabled = false,
Object? onTap,
String? name,
Object? visible,
}) : label = normalizeExpression(label),
onTap = normalizeActionSequence(onTap, parameterName: 'onTap'),
super(name: name, visible: _normalizeVisibility(visible));