encodeWithQuietZone method

List<bool> encodeWithQuietZone(
  1. String data, {
  2. int quiet = 10,
})

Quiet-zone padded module list.

Implementation

List<bool> encodeWithQuietZone(String data, {int quiet = 10}) {
  final List<bool> body = encode(data);
  return <bool>[
    for (int i = 0; i < quiet; i++) false,
    ...body,
    for (int i = 0; i < quiet; i++) false,
  ];
}