syncColor method Null safety

  1. @override
void syncColor()

Implementation

@override
void syncColor() {
  super.syncColor();
  paint.color = color
      .withOpacity((color.opacity * renderOpacity).clamp(0, 1).toDouble());
}