Unicon constructor
Unicon(
- UniconData icon, {
- double size = 24,
- BoxFit fit = BoxFit.contain,
- bool allowDrawingOutsideViewBox = false,
- Color color = Colors.black45,
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center,
- Duration animationDuration = const Duration(milliseconds: 300),
- Curve animationCurve = Curves.fastOutSlowIn,
Implementation
Unicon(
this.icon,
{
this.size = 24,
this.fit = BoxFit.contain,
this.allowDrawingOutsideViewBox = false,
this.color = Colors.black45,
this.mainAxisAlignment = MainAxisAlignment.center,
this.animationDuration = const Duration(milliseconds: 300),
this.animationCurve = Curves.fastOutSlowIn
}
);