opacityChanged method Null safety

  1. @override
void opacityChanged(
  1. double from,
  2. double to
)
override

Implementation

@override
void opacityChanged(double from, double to) {
  syncColor();
  // We don't need to rebuild anything, just let our shape know we should
  // repaint.
  shapePaintContainer!.addDirt(ComponentDirt.paint);
}