FIcon.image constructor

const FIcon.image(
  1. ImageProvider<Object> image, {
  2. Color? color,
  3. double? size,
  4. String? semanticLabel,
  5. Key? key,
})

Creates a FIcon from an ImageProvider.

Note: Provided images should always have a transparent background. Otherwise, the entire icon will be color.

Set color to Colors.transparent to avoid recoloring the image.

See ImageIcon for more information.

Implementation

const factory FIcon.image(
  ImageProvider<Object> image, {
  Color? color,
  double? size,
  String? semanticLabel,
  Key? key,
}) = _ImageProviderIcon;