AdeptIconButton constructor

AdeptIconButton({
  1. Key? key,
  2. ValueNotifier<bool>? controller,
  3. double iconSize = 24.0,
  4. EdgeInsetsGeometry padding = const EdgeInsets.all(8.0),
  5. AlignmentGeometry alignment = Alignment.center,
  6. required Widget icon,
  7. Widget? iconOn,
  8. Widget? iconOff,
  9. Color? color,
  10. Color? focusColor,
  11. Color? hoverColor,
  12. Color? highlightColor,
  13. Color? splashColor,
  14. Color? disabledColor,
  15. required VoidCallback onPressed,
  16. FocusNode? focusNode,
  17. String? tooltip,
})

Implementation

AdeptIconButton({
  this.key,
  this.controller,
  this.iconSize = 24.0,
  this.padding = const EdgeInsets.all(8.0),
  this.alignment = Alignment.center,
  required this.icon,
  this.iconOn,
  this.iconOff,
  this.color,
  this.focusColor,
  this.hoverColor,
  this.highlightColor,
  this.splashColor,
  this.disabledColor,
  required this.onPressed,
  this.focusNode,
  this.tooltip,
}) {
  controller ??= ValueNotifier(false);
  iconOff ??= icon;
}