Long constructor
const
Long(
- int _value
Creates a Long with the specified value.
value the long value to wrap
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
const Long(this._value);