toBinaryString property
String
get
toBinaryString
Converts the number to a binary (base-2) string representation.
Example:
print(10.toBinaryString); // Outputs: 1010
Implementation
String get toBinaryString => toInt().toRadixString(2);