RasterLayer constructor Null safety

RasterLayer(
  1. {required dynamic id,
  2. dynamic visibility,
  3. dynamic minZoom,
  4. dynamic maxZoom,
  5. required String sourceId,
  6. String? sourceLayer,
  7. double? rasterBrightnessMax,
  8. double? rasterBrightnessMin,
  9. double? rasterContrast,
  10. double? rasterFadeDuration,
  11. double? rasterHueRotate,
  12. double? rasterOpacity,
  13. RasterResampling? rasterResampling,
  14. double? rasterSaturation}
)

Implementation

RasterLayer({
  required id,
  visibility,
  minZoom,
  maxZoom,
  required this.sourceId,
  this.sourceLayer,
  this.rasterBrightnessMax,
  this.rasterBrightnessMin,
  this.rasterContrast,
  this.rasterFadeDuration,
  this.rasterHueRotate,
  this.rasterOpacity,
  this.rasterResampling,
  this.rasterSaturation,
}) : super(
          id: id, visibility: visibility, maxZoom: maxZoom, minZoom: minZoom);