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}
)

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,
});