KeyboardConfig constructor
KeyboardConfig({
- bool enable = true,
- List<
KeyboardDirectionalKeys> ? directionalKeys, - List<
LogicalKeyboardKey> ? acceptedKeys, - bool enableDiagonalInput = true,
Implementation
KeyboardConfig({
this.enable = true,
List<KeyboardDirectionalKeys>? directionalKeys,
this.acceptedKeys,
this.enableDiagonalInput = true,
}) : directionalKeys = directionalKeys ?? [KeyboardDirectionalKeys.arrows()] {
acceptedKeys?.addAll(
this.directionalKeys.map((e) => e.keys).expand((e) => e),
);
}