drawOnCanvas abstract method

void drawOnCanvas(
  1. Canvas canvas,
  2. Paint? paint,
  3. bool internalPaintOverridingEnabled,
  4. BeforeRenderHookCallback? beforeRenderCallback,
)

The method accepts a link to the Canvas as parameters as well as an additional parameter of type Paint

Must be descendant classes and perform the function of drawing the corresponding element on the canvas

Implementation

void drawOnCanvas(
  Canvas canvas,
  Paint? paint,
  bool internalPaintOverridingEnabled,
  BeforeRenderHookCallback? beforeRenderCallback,
);