createInstance property

MapHeroPlatform Function() createInstance
getter/setter pair

The default instance of MapHeroPlatform to use.

Defaults to MapHeroMethodChannel.

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

Implementation

static MapHeroPlatform Function() createInstance =
    () => _instance ?? MapHeroMethodChannel();