add method

  1. @protected
Iterable<bool> add(
  1. int data,
  2. int count
)
inherited

Build a stream of bool that represents a white or black bar from a bit encoded int with count as the number of bars to draw

Implementation

@protected
Iterable<bool> add(int data, int count) sync* {
  for (var i = 0; i < count; i++) {
    yield (1 & (data >> i)) == 1;
  }
}