syncColor method Null safety

  1. @override
void syncColor()

Implementation

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