setPostambleFromKeys method

Future<CommandResponse> setPostambleFromKeys({
  1. required dynamic deviceId,
  2. required List<DirectInputKey> keys,
})

Sets the postamble formatting using a list of DirectInputKey.

deviceId - The identifier of the target device. keys - A list of DirectInputKey values to be used for the postamble, with a maximum length of 8.

Returns a CommandResponse indicating the success or failure of the operation.

Implementation

Future<CommandResponse> setPostambleFromKeys(
    {required deviceId, required List<DirectInputKey> keys}) async {
  final directInputKeysCodes =
      _getDirectInputKeysCodes(keys, _maxPostambleChars);
  return sendCommand(deviceId, postamble, parameters: directInputKeysCodes);
}