# valueOfString static method

Long valueOfString(

1. String str, [
2. int radix = 10

])

Returns a Long instance from a string.

`str` the string representation `radix` the radix to use for parsing (default is 10)

A wrapper class for large integers that provides Java-like functionality.

This class wraps Dart's int type but is designed for large integer values, similar to Java's Long class.

Example usage:

    Long a = Long(9223372036854775807);
    Long b = Long.valueOf(1000000000000);
    Long c = Long.parseLong("123456789012345");

    print(a.toString()); // "9223372036854775807"
    print(a.compareTo(b)); // 1

## Implementation

    static Long valueOfString(String str, [int radix = 10]) {
      return parseLong(str, radix);
    }