instance property
NaturalLanguagePlatform
get
instance
The default instance of NaturalLanguagePlatform to use.
Defaults to MethodChannelNaturalLanguage.
Implementation
static NaturalLanguagePlatform get instance => _instance;
set
instance
(NaturalLanguagePlatform instance)
Platform-specific implementations should set this with their own platform-specific class that extends NaturalLanguagePlatform when they register themselves.
Implementation
static set instance(NaturalLanguagePlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}