KeyboardConfig constructor

KeyboardConfig({
  1. bool enable = true,
  2. List<KeyboardDirectionalKeys>? directionalKeys,
  3. List<LogicalKeyboardKey>? acceptedKeys,
  4. 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),
  );
}