dispose method

  1. @override
Future<void> dispose()

Releases native resources associated with this controller.

Typically invoked by GemMap lifecycle management.

After calling this method, the controller instance should be considered invalid. Do not call any other methods on this instance after calling dispose. Also avoid using instances linked to this controller, such as MapViewPreferences, FollowPositionPreferences and collections.

Implementation

@override
Future<void> dispose() async {
  await releaseView();
}