const
DecorationImage(- {required ImageProvider image,
- ColorFilter? colorFilter,
- BoxFit? fit,
- @Default(Alignment.center) Alignment alignment,
- Rect? centerSlice,
- @Default(ImageRepeat.noRepeat) ImageRepeat repeat,
- @Default(false) bool matchTextDirection,
- @Default(1.0) double scale,
- @Default(1.0) double opacity,
- @Default(FilterQuality.low) FilterQuality filterQuality,
- @Default(false) bool invertColors,
- @Default(false) bool isAntiAlias}
)
Implementation
const factory DecorationImage({
required ImageProvider image,
ColorFilter? colorFilter,
BoxFit? fit,
@Default(Alignment.center) Alignment alignment,
Rect? centerSlice,
@Default(ImageRepeat.noRepeat) ImageRepeat repeat,
@Default(false) bool matchTextDirection,
@Default(1.0) double scale,
@Default(1.0) double opacity,
@Default(FilterQuality.low) FilterQuality filterQuality,
@Default(false) bool invertColors,
@Default(false) bool isAntiAlias,
}) = _DecorationImage;