Icon constructor

const Icon({
  1. Key? key,
  2. required String icon,
  3. Color? color,
})

Creates an Icon displaying icon with an optional color.

Implementation

const Icon({super.key, required this.icon, this.color});