NtkMapViewInterface constructor

NtkMapViewInterface({
  1. Key? key,
  2. dynamic onCreateStart()?,
  3. dynamic onCreateEnd(
    1. NtkMapControllerInterface
    )?,
  4. dynamic onMapClick(
    1. LatLng
    )?,
  5. String mapPath = kReleaseMode ? "assets/packages/ntk_map_view/assets/map.html" : "packages/ntk_map_view/assets/map.html",
  6. NtkMapControllerInterface? mapController,
})

Widget to display a map this have a onCreateStart, onCreateEnd, onMapClick callbacks Also may configure path to map in mapPath And add a controller

Implementation

NtkMapViewInterface(
    {super.key,
    this.onCreateStart,
    this.onCreateEnd,
    this.onMapClick,
    this.mapPath = kReleaseMode
        ? "assets/packages/ntk_map_view/assets/map.html"
        : "packages/ntk_map_view/assets/map.html",
    NtkMapControllerInterface? mapController}) {
  if (mapController == null) {
    controller = cont.NtkMapController(viewId: createUniqueUid(count: 6));
  } else {
    controller = mapController;
  }

  state = st.NtkMapViewState();
}