BackgroundImageDecoration constructor

const BackgroundImageDecoration({
  1. required ImageProvider<Object> image,
  2. BoxFit fit = BoxFit.cover,
  3. ColorFilter? colorFilter,
  4. double opacity = 1.0,
})

Implementation

const BackgroundImageDecoration({
  required ImageProvider<Object> image,
  BoxFit fit = BoxFit.cover,
  ColorFilter? colorFilter,
  double opacity = 1.0,
}) : super(
        image: image,
        fit: fit,
        colorFilter: colorFilter,
        opacity: opacity,
      );