AmapController.android constructor

AmapController.android(
  1. com_amap_api_maps_MapView androidController,
  2. _AmapViewState _state,
  3. _OnMapCreated onMapCreated
)

Android构造器

Implementation

AmapController.android(
  this.androidController,
  this._state,
  _OnMapCreated onMapCreated,
) {
  WidgetsBinding.instance.addObserver(this);
  androidController.getMap().then((map) {
    map.setOnMapLoadedListener(
      _androidMapDelegate
        .._onMapLoaded = () async {
          await onMapCreated(this);
        },
    );
  });
}