delegate property

CustomPainter get delegate

The renderer's painter for this frame.

Implementation

CustomPainter get delegate {
  final data = theme.value;
  final face = data.keyFace;
  final spec = data.keyFaceSpec(
    role,
    reduceMotion: reduceMotion,
    artSeed: artSeed,
  );
  final current = _delegate;
  if (current != null && face == _face && spec == _spec) return current;
  _face = face;
  _spec = spec;
  return _delegate = face.painter(motion, spec);
}