printSeparatingLine method
Implementation
Future<void> printSeparatingLine({required SeparatingLine type}) async {
assert(
type != SeparatingLine.none,
'Separating line type must not be none',
);
final message = await execute(
Commands.printSeparatingLine.code,
data: [type.index].toCommand(),
);
final [$e] = message.data.response;
final error = int.tryParse($e) ?? 0;
if (error != 0) {
throw FiscalCodeException('Error printing separating line', error);
}
}