LiveIconButton constructor
const
LiveIconButton({
- required AnimatedIconData icon,
- required Function onPressed,
- Key? key,
- Duration duration = const Duration(milliseconds: 300),
- Color? splashColor,
- Color? hoverColor,
- double size = 24,
- EdgeInsetsGeometry padding = const EdgeInsets.all(18),
- AlignmentGeometry alignment = Alignment.center,
- Color? color,
- Color? focusColor,
- Color? highlightColor,
- Color? disabledColor,
- FocusNode? focusNode,
- String? semanticLabel,
- TextDirection? textDirection,
- String? firstTooltip,
- String? secondTooltip,
Implementation
const LiveIconButton({
required this.icon,
required this.onPressed,
Key? key,
this.duration = const Duration(milliseconds: 300),
this.splashColor,
this.hoverColor,
this.size = 24,
this.padding = const EdgeInsets.all(18),
this.alignment = Alignment.center,
this.color,
this.focusColor,
this.highlightColor,
this.disabledColor,
this.focusNode,
this.semanticLabel,
this.textDirection,
this.firstTooltip,
this.secondTooltip,
}) : iconState = null,
super(key: key);