PencilDecorationPaintProvider typedef

PencilDecorationPaintProvider = Paint? Function(int row, int column, Paint paint)

A custom provider for the paint to be used. The returned paint will be used to draw the next element. In case null is returned the element is not painted.

Implementation

typedef PencilDecorationPaintProvider = Paint? Function(
// Index of the row/column that will be painted next starting with 0. If
// vertical lines are painted row will be -1, in case of horizontal lines
// column will be -1. In case the frame is painted both values will be -1.
  int row,
  int column,

// The paint that would be used to paint the element
  Paint paint,
);