addHW method

  1. @protected
Iterable<BarcodeHMBar> addHW(
  1. int code,
  2. int len
)

Convert bit code to a bar types

Implementation

@protected
Iterable<BarcodeHMBar> addHW(int code, int len) sync* {
  for (var index = 0; index < len; index++) {
    yield fromBits((code >> index * 2) & 3);
  }
}