capChanged method Null safety

  1. @override
void capChanged(
  1. int from,
  2. int to
)
override

Implementation

@override
void capChanged(int from, int to) {
  paint.strokeCap = StrokeCap.values[to];
  parent?.addDirt(ComponentDirt.paint);
}