MarkerLayer constructor

const MarkerLayer(
  1. dynamic marker, {
  2. Key? key,
  3. MarkerLayerOptions? options,
})

Implementation

const MarkerLayer(
  dynamic marker, {
  Key? key,
  this.options,
})  : assert(marker is Marker || marker is List<Marker>),
      marker = marker is Marker ? marker : null,
      markers = marker is List<Marker> ? marker : const <Marker>[],
      super(key: key, options: options);