Transform binary to int value 转换二进制为int值 Example: 1111 => 15
static int? fromBinary(String binaryStr) => int.tryParse(binaryStr, radix: 2);