FloodFillImage constructor

const FloodFillImage({
  1. Key? key,
  2. required ImageProvider<Object> imageProvider,
  3. required Color fillColor,
  4. bool isFillActive = true,
  5. List<Color>? avoidColor,
  6. int tolerance = 8,
  7. int? width,
  8. int? height,
  9. AlignmentGeometry? alignment,
  10. Widget? loadingWidget,
  11. dynamic onFloodFillStart(
    1. Offset position,
    2. Image image
    )?,
  12. dynamic onFloodFillEnd(
    1. Image image
    )?,
})

Flutter widget that can use paint bucket functionality on the provided image.

Implementation

const FloodFillImage(
    {Key? key,
    required this.imageProvider,
    required this.fillColor,
    this.isFillActive = true,
    this.avoidColor,
    this.tolerance = 8,
    this.width,
    this.height,
    this.alignment,
    this.loadingWidget,
    this.onFloodFillStart,
    this.onFloodFillEnd})
    : super(key: key);