lPatterns constant

List<List<int>> const lPatterns

"Odd", or "L" patterns used to encode UPC/EAN digits.

Implementation

static const List<List<int>> lPatterns = [
  [3, 2, 1, 1], // 0
  [2, 2, 2, 1], // 1
  [2, 1, 2, 2], // 2
  [1, 4, 1, 1], // 3
  [1, 1, 3, 2], // 4
  [1, 2, 3, 1], // 5
  [1, 1, 1, 4], // 6
  [1, 3, 1, 2], // 7
  [1, 2, 1, 3], // 8
  [3, 1, 1, 2] // 9
];