BackgroundImageDecoration constructor
const
BackgroundImageDecoration({
- required ImageProvider<
Object> image, - BoxFit? fit = BoxFit.cover,
- ColorFilter? colorFilter,
- double opacity = 0.5,
Implementation
const BackgroundImageDecoration({
required super.image, // The image provider for the background image
super.fit = BoxFit.cover, // How the image should be fitted in the box
super.colorFilter, // An optional color filter to apply to the image
super.opacity = 0.5, // The opacity of the image
});