createInstance property

MapLibrePlatform Function() createInstance
getter/setter pair

The default instance of MapLibrePlatform to use.

Defaults to MapLibreMethodChannel.

Platform-specific plugins should set this with their own platform-specific class that extends MapLibrePlatform when they register themselves.

Implementation

static MapLibrePlatform Function() createInstance =
    () => _instance ?? MapLibreMethodChannel();