KeyboardLanguagePlatform class abstract

The interface platform implementations of keyboard_language must implement. Deals only in raw platform strings — normalization to BCP-47 happens once, on the Dart side, in KeyboardLanguage.

Inheritance
  • Object
  • PlatformInterface
  • KeyboardLanguagePlatform
Implementers

Constructors

KeyboardLanguagePlatform()
Constructs a KeyboardLanguagePlatform.

Properties

hashCode int
The hash code for this object.
no setterinherited
onLanguageChanged Stream<String?>
Broadcast stream of raw language tags, emitted whenever the platform reports that the active keyboard language changed.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getCurrentLanguage() Future<String?>
The raw language tag reported by the platform for the active keyboard, or null if it could not be determined.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance KeyboardLanguagePlatform
The default instance of KeyboardLanguagePlatform to use.
getter/setter pair