Fill constructor

const Fill({
  1. Color? color,
  2. Gradient? shader,
})

Creates a new immutable set of drawing attributes for a Paint.

Implementation

const Fill({
  Color? color,
  this.shader,
}) : color = color ?? Color.opaqueBlack;