icon static method

Icon icon(
  1. IconData icon, {
  2. Key? key,
  3. double? size,
  4. Color? color,
  5. String? semanticLabel,
  6. TextDirection? textDirection,
  7. bool animate = false,
})

Implementation

static Icon icon(
  IconData icon, {
  Key? key,
  double? size,
  Color? color,
  String? semanticLabel,
  TextDirection? textDirection,
  bool animate = false,
}) =>
    animate
        ? _StyledAnimatedIconContainer(
            icon,
            color: color,
            size: size,
            semanticLabel: semanticLabel,
            textDirection: textDirection,
          )
        : Icon(
            icon,
            color: color,
            size: size,
            semanticLabel: semanticLabel,
            textDirection: textDirection,
          );