XIconBAnimated constructor

XIconBAnimated(
  1. {@required AnimatedIconData icon,
  2. @required Function onPressed,
  3. Key key,
  4. Duration duration = const Duration(milliseconds: 300),
  5. Color splashColor,
  6. Color hoverColor,
  7. double size = 24,
  8. EdgeInsetsGeometry padding = const EdgeInsets.all(18),
  9. AlignmentGeometry alignment = Alignment.center,
  10. Color color,
  11. Color focusColor,
  12. Color highlightColor,
  13. Color disabledColor,
  14. FocusNode focusNode,
  15. String semanticLabel,
  16. TextDirection textDirection,
  17. String firstTooltip,
  18. String secondTooltip}
)

Implementation

XIconBAnimated({
  @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);