instance property

FlutterMcpPlatform get instance

Implementation

static FlutterMcpPlatform get instance {
  if (_instance == null) {
    throw UnimplementedError(
      'FlutterMcpPlatform has not been initialized. Please register a platform implementation (e.g. FlutterMcpWeb.registerWith).',
    );
  }
  return _instance!;
}
set instance (FlutterMcpPlatform instance)

Implementation

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