WIconAsset constructor

WIconAsset({
  1. Key? key,
  2. required String path,
  3. double size = 48,
  4. Color? color,
  5. BlendMode? colorBlendMode,
  6. BoxFit? fit,
  7. AlignmentGeometry alignment = Alignment.center,
  8. ImageRepeat repeat = ImageRepeat.noRepeat,
  9. Rect? centerSlice,
  10. bool matchTextDirection = false,
  11. bool gaplessPlayback = false,
  12. bool isAntiAlias = false,
  13. ImageLoadingBuilder? loadingBuilder,
  14. ImageFrameBuilder? frameBuilder,
  15. String? semanticLabel,
  16. bool excludeFromSemantics = false,
})

Implementation

WIconAsset({
  super.key,
  required String path,
  double size = 48,
  super.color,
  super.colorBlendMode,
  super.fit,
  super.alignment = Alignment.center,
  super.repeat = ImageRepeat.noRepeat,
  super.centerSlice,
  super.matchTextDirection = false,
  super.gaplessPlayback = false,
  super.isAntiAlias = false,
  super.loadingBuilder,
  super.frameBuilder,
  super.semanticLabel,
  super.excludeFromSemantics = false,
}) : super(
        image: AssetImage(path),
        width: size,
        height: size,
        filterQuality: FilterQuality.high,
      );