WIconAsset constructor
WIconAsset({
- Key? key,
- required String path,
- double size = 48,
- Color? color,
- BlendMode? colorBlendMode,
- BoxFit? fit,
- AlignmentGeometry alignment = Alignment.center,
- ImageRepeat repeat = ImageRepeat.noRepeat,
- Rect? centerSlice,
- bool matchTextDirection = false,
- bool gaplessPlayback = false,
- bool isAntiAlias = false,
- ImageLoadingBuilder? loadingBuilder,
- ImageFrameBuilder? frameBuilder,
- String? semanticLabel,
- 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,
);