VirtualKeyContext class Theming
What a VirtualKeypadKeyBuilder is told about the key it is drawing.
Constructors
- VirtualKeyContext({required VirtualKey key, required String? label, required bool shift, required bool capsLock, required bool isFocused, required VirtualKeypadTheme theme})
-
Creates the context handed to a key builder.
const
Properties
- capsLock → bool
-
Whether caps lock is currently on.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isFocused → bool
-
Whether this key is the current D-pad target and is being highlighted.
final
- key → VirtualKey
-
The key being drawn, including its VirtualKey.text and
VirtualKey.action.
final
- label → String?
-
The text this key would show, with shift and caps lock already applied.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shift → bool
-
Whether shift is currently held.
final
- theme → VirtualKeypadTheme
-
The theme in force, so a builder can follow it instead of hard-coding.
final
Methods
-
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