StaticMap constructor

StaticMap(
  1. String _apiKey, {
  2. String? polyEncode,
  3. List<Location> markers = const [],
  4. String? zoom,
  5. String size = '580x267',
  6. String? center,
  7. bool scale = false,
  8. Path? path,
  9. String mapType = 'roadmap',
})

Implementation

StaticMap(
  this._apiKey, {
  this.polyEncode,
  this.markers = const [],
  this.zoom,
  this.size = '580x267',
  this.center,
  this.scale = false,
  this.path,
  this.mapType = 'roadmap',
}) : assert(
        size.contains('x'),
      );