defaultPaint property

Paint? defaultPaint
getter/setter pair

You can initialize or override defaultPaint for add paint filters. /// For example, sepia animation:

overridePaint = Paint()
  ..colorFilter = const ColorFilter.matrix(<double>[
    0.393, 0.769, 0.189, 0, 0,
    0.349, 0.686, 0.168, 0, 0,
    0.272, 0.534, 0.131, 0, 0,
    0, 0, 0, 1, 0,
  ]);

\see buildPaint

Implementation

Paint? defaultPaint;