CanvasPaint constructor

const CanvasPaint({
  1. String? fill,
  2. CanvasImagePattern? pattern,
  3. String? stroke = '#111827',
  4. double lineWidth = 1,
  5. String font = '16px sans-serif',
})

Creates canvas paint settings.

Implementation

const CanvasPaint({
  this.fill,
  this.pattern,
  this.stroke = '#111827',
  this.lineWidth = 1,
  this.font = '16px sans-serif',
});