writeListBool method

int writeListBool(
  1. List<bool> values
)

Write the given list of bools as unsigend 8-bit integer values.

Implementation

int writeListBool(List<bool> values) {
  return writeListUint8(values.map((b) => b ? 1 : 0).toList());
}