# toRadixString method

String toRadixString([

1. int? radix

])

Returns a string representation in the specified radix.

`radix` the radix to use (2-36)

Example:

    Integer a = Integer(42);
    print(a.toString(2)); // "101010" (binary)
    print(a.toString(16)); // "2a" (hexadecimal)

## Implementation

    String toRadixString([int? radix]) {
      if (radix == null) return _value.toString();
      return _value.toRadixString(radix);
    }