i64 class

64-bit Signed Integer

-9223372036854775808 to 9223372036854775807

The i64 type is contagious. Most operations on i64 will return i64 values

Inheritance

Constructors

i64(int value)
64-bit Signed Integer
i64.fromEnvironment(String name, {int defaultValue = 0})
64-bit Signed Integer
factory
i64.integer(integer val)
64-bit Signed Integer
i64.parse(String source, {int? radix})
64-bit Signed Integer

Properties

hashCode int
The hash code for this object.
getter/setter pairinherited
isEven bool
Returns true if and only if this integer is even.
no setterinherited
isOdd bool
Returns true if and only if this integer is odd.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sign int
Returns the sign of this integer.
no setterinherited
value int
Value of the integer
no setterinherited

Methods

abs() u63
Returns the absolute value of this integer.
override
ceilToDouble() double
Returns this.toDouble().
inherited
compareTo(integer other) int
Compares this object to another object.
inherited
floorToDouble() double
Returns this.toDouble().
inherited
gcd(integer other) i64
Returns the greatest common divisor of this integer and other.
override
modInverse(unsigned modulus) i64
Returns the modular multiplicative inverse of this integer modulo modulus.
override
modPow(unsigned exponent, unsigned modulus) i64
Returns this integer to the power of exponent modulo modulus.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remainder(dynamic other) i64
The remainder of the truncating division of this by other.
override
roundToDouble() double
Returns this.toDouble().
inherited
toRadixString(int radix) String
Converts this to a string representation in the given radix.
inherited
toString() String
Returns a string representation of this integer.
inherited
truncateToDouble() double
Returns this.toDouble().
inherited

Operators

operator %(dynamic other) i64
Euclidean modulo of this number by other.
override
operator &(dynamic other) i64
Bit-wise and operator.
override
operator *(dynamic other) i64
Multiplies this integer by other.
override
operator +(dynamic other) i64
Adds other to this number.
override
operator -(dynamic other) i64
Subtracts other from this number.
override
operator /(dynamic other) double
Divides this number by other.
inherited
operator <(dynamic other) bool
Whether this number is numerically smaller than other.
inherited
operator <<(dynamic other) i64
Shift the bits of this integer to the left by shiftAmount.
override
operator <=(dynamic other) bool
Whether this number is numerically smaller than or equal to other.
inherited
operator ==(Object other) bool
Test whether this value is numerically equal to other.
inherited
operator >(dynamic other) bool
Whether this number is numerically greater than other.
inherited
operator >=(dynamic other) bool
Whether this number is numerically greater than or equal to other.
inherited
operator >>(dynamic other) i64
Shift the bits of this integer to the right by shiftAmount.
override
operator >>>(dynamic other) i64
Bitwise unsigned right shift by shiftAmount bits.
override
operator ^(dynamic other) i64
Bit-wise exclusive-or operator.
override
operator unary-() i64
Return the negative value of this integer.
override
operator |(dynamic other) i64
Bit-wise or operator.
override
operator ~() i64
The bit-wise negate operator.
override
operator ~/(dynamic other) i64
Truncating division operator.
override

Static Methods

tryParse(String source) i64?
Parse source as a, signed integer literal.