explode method Null safety

FeatureCollection explode()

Implementation

FeatureCollection explode() {
  final explodedFeatures = <Feature>[];
  for (final feature in features) {
    explodedFeatures.addAll(feature.explode());
  }
  return FeatureCollection(explodedFeatures);
}