childAdded method Null safety

  1. @override
void childAdded(
  1. Component child
)

Implementation

@override
void childAdded(Component child) {
  super.childAdded(child);
  if (child is GradientStop && !gradientStops.contains(child)) {
    gradientStops.add(child);

    markStopsDirty();
  }
}