const
Widget.image(- {Key? key,
- required ImageProvider image,
- String? semanticLabel,
- @Default(false) bool excludeFromSemantics,
- double? width,
- double? height,
- Color? color,
- BlendMode? colorBlendMode,
- BoxFit? fit,
- @Default(Alignment.center) Alignment alignment,
- @Default(ImageRepeat.noRepeat) ImageRepeat repeat,
- Rect? centerSlice,
- @Default(false) bool matchTextDirection,
- @Default(false) bool gaplessPlayback,
- @Default(false) bool isAntiAlias,
- @Default(FilterQuality.low) FilterQuality filterQuality}
)
Implementation
const factory Widget.image({
Key? key,
required ImageProvider image,
String? semanticLabel,
@Default(false) bool excludeFromSemantics,
double? width,
double? height,
Color? color,
BlendMode? colorBlendMode,
BoxFit? fit,
@Default(Alignment.center) Alignment alignment,
@Default(ImageRepeat.noRepeat) ImageRepeat repeat,
Rect? centerSlice,
@Default(false) bool matchTextDirection,
@Default(false) bool gaplessPlayback,
@Default(false) bool isAntiAlias,
@Default(FilterQuality.low) FilterQuality filterQuality,
}) = Image;