setPostambleFromKeys method
Future<CommandResponse>
setPostambleFromKeys({
- required dynamic deviceId,
- 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);
}