BeforePaintImage typedef

BeforePaintImage = bool Function(Canvas canvas, Rect rect, Image image, 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);