init method

  1. @override
void init()
override

implement this method,should be start with super.init()

Implementation

@override
void init() {
  super.init();
  Future.delayed(const Duration(seconds: 1), () async {
    await osmBaseController.addMarker(
      initPosition!,
      markerIcon: markerHome,
    );
    final limtArea = BoundingBox.fromCenter(initPosition!, 0.1);
    await osmBaseController.limitArea(
      limtArea,
    );
  });
}