BeforePaintImage typedef

bool BeforePaintImage (
  1. Canvas canvas,
  2. Rect rect,
  3. Image image,
  4. Paint paint
)

rect is render size if return true, it will not paint original image,

Implementation

typedef BeforePaintImage = bool Function(
    Canvas canvas, Rect rect, ui.Image image, Paint paint);