KeyboardLanguageLinux class
KeyboardLanguagePlatform for Linux desktops using GNOME and/or IBus.
- Inheritance
-
- Object
- PlatformInterface
- KeyboardLanguagePlatform
- KeyboardLanguageLinux
Constructors
- KeyboardLanguageLinux({LinuxProcessRunner? runProcess, LinuxProcessStarter? startProcess})
-
Creates the Linux implementation.
runProcessandstartProcessdefault toProcess.run/Process.start.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getAvailable(
) → Future< List< InputLanguage> > -
Lists the keyboards / input languages the user has enabled.
override
-
getCapabilities(
) → Future< KeyboardLanguageCapabilities> -
Describes what this platform supports.
override
-
getCurrent(
) → Future< InputLanguage?> -
Reads the active keyboard language, or
nullwhen unknown.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setLanguage(
String languageTag) → Future< bool> -
Selects the installed keyboard matching
languageTag. Returnsfalsewhen none matches; throws UnsupportedError where impossible.override -
toString(
) → String -
A string representation of this object.
inherited
-
watch(
{required Duration pollInterval}) → Stream< InputLanguage?> -
Streams the keyboard language, starting with the current value where the
platform can determine it.
pollIntervalis used by platforms that have no change notification.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
registerWith(
) → void - Registers this class as the platform implementation.