ControlButton constructor

ControlButton({
  1. String? name,
  2. IconData? icon,
  3. IconData? alternateIcon,
  4. VoidCallback? onPress,
  5. Color? color = Colors.white,
  6. Color? activeColor = Colors.blue,
  7. Color? inActiveColor = Colors.grey,
  8. bool active = false,
  9. bool show = true,
  10. Widget? customComponent,
  11. bool disabled = false,
  12. Map<String, Color>? backgroundColor,
  13. EdgeInsetsGeometry? padding,
  14. EdgeInsetsGeometry? margin,
  15. BoxDecoration? decoration,
  16. BoxConstraints? constraints,
  17. EdgeInsetsGeometry? contentPadding,
  18. MainAxisAlignment? contentMainAxisAlignment,
  19. CrossAxisAlignment? contentCrossAxisAlignment,
  20. double? contentGap,
  21. double? iconSize,
  22. TextStyle? textStyle,
  23. EdgeInsetsGeometry? labelPadding,
  24. EdgeInsetsGeometry? iconPadding,
  25. Widget? iconWidget,
  26. Widget? alternateIconWidget,
  27. ControlButtonsButtonContentBuilder? contentBuilder,
  28. ControlButtonsButtonBuilder? buttonBuilder,
  29. ControlButtonsButtonIconBuilder? iconBuilder,
  30. ControlButtonsButtonLabelBuilder? labelBuilder,
  31. String? semanticsLabel,
})

Implementation

ControlButton({
  this.name,
  this.icon,
  this.alternateIcon,
  this.onPress,
  this.color = Colors.white,
  this.activeColor = Colors.blue,
  this.inActiveColor = Colors.grey,
  this.active = false,
  this.show = true,
  this.customComponent,
  this.disabled = false,
this.backgroundColor,
  this.padding,
  this.margin,
  this.decoration,
  this.constraints,
  this.contentPadding,
  this.contentMainAxisAlignment,
  this.contentCrossAxisAlignment,
  this.contentGap,
  this.iconSize,
  this.textStyle,
  this.labelPadding,
  this.iconPadding,
  this.iconWidget,
  this.alternateIconWidget,
  this.contentBuilder,
  this.buttonBuilder,
  this.iconBuilder,
  this.labelBuilder,
  this.semanticsLabel,
});