toOctal method

String toOctal()

Converts this number to its octal string representation.

8.toOctal() // '10'

Implementation

String toOctal() => toInt().toRadixString(8);