valueOf static method
Returns a Long instance representing the specified int value.
value
the long value
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 valueOf(int value) {
return Long(value);
}