instance property

JackfieldPlatform get instance

The registered adapter, defaulting to the method-channel implementation.

Implementation

static JackfieldPlatform get instance => _instance;
set instance (JackfieldPlatform platform)

Registers an adapter that extends this contract.

Test/application injection belongs in Jackfield.withPlatform and does not mutate this process-wide registration.

Implementation

static set instance(JackfieldPlatform platform) {
  PlatformInterface.verifyToken(platform, _token);
  _instance = platform;
}