bin function Null safety

int bin(
  1. String s
)

Converts a binary String representation to a binary int.

Ignores all '_' in the provided binary.

Implementation

int bin(String s) => _unsignedBinaryParse(s.replaceAll('_', ''));