instance property

FlyChatFlutterPlatform get instance

Gets the current instance of FlyChatFlutterPlatform.

This instance should be the platform-specific implementation of the FlyChat functionality. By default, it uses MethodChannelFlyChatFlutter.

Returns the current instance of FlyChatFlutterPlatform.

Implementation

static FlyChatFlutterPlatform get instance => _instance;
set instance (FlyChatFlutterPlatform instance)

Sets the current instance of FlyChatFlutterPlatform.

This method allows platform-specific implementations to set themselves as the instance of FlyChatFlutterPlatform that should be used.

instance The instance of FlyChatFlutterPlatform to use.

Implementation

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