TMap constructor

const TMap({
  1. Key? key,
  2. LatLng? initialCoordinates,
  3. List<TMapPin> pins = const [],
  4. List<TMapPolyline> polylines = const [],
  5. List<TMapPolygon> polygons = const [],
  6. String? googleMapApiKey,
  7. double height = 200,
  8. double width = double.infinity,
  9. bool interactive = true,
  10. ValueChanged<LatLng>? onCoordinatesChanged,
  11. MapTileType mapType = MapTileType.osm,
  12. double zoom = 15,
  13. double minZoom = 4.0,
  14. double maxZoom = 17.0,
  15. double borderRadius = 12,
})

Implementation

const TMap({
  super.key,
  this.initialCoordinates,
  this.pins = const [],
  this.polylines = const [],
  this.polygons = const [],
  this.googleMapApiKey,
  this.height = 200,
  this.width = double.infinity,
  this.interactive = true,
  this.onCoordinatesChanged,
  this.mapType = MapTileType.osm,
  this.zoom = 15,
  this.minZoom = 4.0,
  this.maxZoom = 17.0,
  this.borderRadius = 12,
});