Unicon constructor

Unicon(
  1. UniconData icon, {
  2. double size = 24,
  3. BoxFit fit = BoxFit.contain,
  4. bool allowDrawingOutsideViewBox = false,
  5. Color color = Colors.black45,
  6. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center,
  7. Duration animationDuration = const Duration(milliseconds: 300),
  8. 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
  }
);