byteToBits function

List<bool> byteToBits(
  1. int byte,
  2. int size
)

Implementation

List<bool> byteToBits(int byte, int size) {
  return List.generate(size, (i) => (byte & (1 << i)) != 0);
}