# toBinaryString method

String toBinaryString()

Returns a binary string representation of the bytes.

Each byte is represented as an 8-bit binary value.

Example:

    final b = Byte(42);
    print(b.toBinaryString());  // '00101010'

    final bytes = Byte.fromList([1, 2]);
    print(bytes.toBinaryString());  // '0000000100000010'

## Implementation

    String toBinaryString() {
      return toUnsignedList()
          .map((b) => b.toRadixString(2).padLeft(8, '0'))
          .join();
    }