painter method

  1. @override
CustomPainter painter(
  1. KeyFaceMotion motion,
  2. KeyFaceSpec spec
)
override

The painter behind the label: fill, state layers, long-press fill. It should repaint from motion's listenable without rebuilds.

Implementation

@override
CustomPainter painter(KeyFaceMotion motion, KeyFaceSpec spec) =>
    PlainKeyPainter(motion: motion, spec: spec);