ggicon function

Widget ggicon(
  1. IconData? icon, {
  2. Style? style,
  3. Key? key,
  4. double? size,
  5. double? fill,
  6. double? weight,
  7. double? grade,
  8. double? opticalSize,
  9. Color? color,
  10. List<Shadow>? shadows,
  11. String? semanticLabel,
  12. TextDirection? textDirection,
})

Implementation

Widget ggicon(IconData? icon,
    {Style? style,
    Key? key,
    double? size,
    double? fill,
    double? weight,
    double? grade,
    double? opticalSize,
    Color? color,
    List<Shadow>? shadows,
    String? semanticLabel,
    TextDirection? textDirection}) {
  Widget widget = Icon(
    icon,
    color: color,
    size: size,
    fill: fill,
    weight: weight,
    grade: grade,
    opticalSize: opticalSize,
    shadows: shadows,
    semanticLabel: semanticLabel,
    textDirection: textDirection,
  );

  Style styleProps = style ?? Style();
  widget = flexManager(props: styleProps, children: [widget]);
  widget = paddingManager(style: styleProps, widget: widget);
  widget = expandManager(style: styleProps, widget: widget);
  widget = sizeManager(style: styleProps, widget: widget);
  widget = positionManager(style: styleProps, widget: widget);
  widget = decorationManager(style: styleProps, widget: widget);
  widget = alignManager(style: styleProps, widget: widget);
  widget = marginManager(style: styleProps, widget: widget);
  widget = centerManager(style: styleProps, widget: widget);
  return widget;
}