HillshadeLayer constructor Null safety

HillshadeLayer(
  1. {required dynamic id,
  2. dynamic visibility,
  3. dynamic minZoom,
  4. dynamic maxZoom,
  5. required String sourceId,
  6. String? sourceLayer,
  7. int? hillshadeAccentColor,
  8. double? hillshadeExaggeration,
  9. int? hillshadeHighlightColor,
  10. HillshadeIlluminationAnchor? hillshadeIlluminationAnchor,
  11. double? hillshadeIlluminationDirection,
  12. int? hillshadeShadowColor}
)

Implementation

HillshadeLayer({
  required id,
  visibility,
  minZoom,
  maxZoom,
  required this.sourceId,
  this.sourceLayer,
  this.hillshadeAccentColor,
  this.hillshadeExaggeration,
  this.hillshadeHighlightColor,
  this.hillshadeIlluminationAnchor,
  this.hillshadeIlluminationDirection,
  this.hillshadeShadowColor,
}) : super(
          id: id, visibility: visibility, maxZoom: maxZoom, minZoom: minZoom);