Button constructor

Button(
  1. Object? label, {
  2. ButtonVariant variant = ButtonVariant.filled,
  3. String? icon,
  4. double? width,
  5. double? height,
  6. ColorToken? color,
  7. ColorToken? textColor,
  8. double? borderRadius,
  9. Object? padding,
  10. bool disabled = false,
  11. Object? onTap,
  12. String? name,
  13. 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));