AdeptIconButton constructor
AdeptIconButton({
- Key? key,
- ValueNotifier<
bool> ? controller, - double iconSize = 24.0,
- EdgeInsetsGeometry padding = const EdgeInsets.all(8.0),
- AlignmentGeometry alignment = Alignment.center,
- required Widget icon,
- Widget? iconOn,
- Widget? iconOff,
- Color? color,
- Color? focusColor,
- Color? hoverColor,
- Color? highlightColor,
- Color? splashColor,
- Color? disabledColor,
- required VoidCallback onPressed,
- FocusNode? focusNode,
- 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;
}