signed class abstract

signed represent an signed integer. This is the base class for all signed integer datatypes

This abstraction doesn't tell you about the bit-width of the integer

Inheritance
Implementers

Constructors

signed({required int value})
signed represent an signed integer. This is the base class for all signed integer datatypes

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() unsigned
Returns the absolute value of this integer.
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) integer
Returns the modular multiplicative inverse of this integer modulo modulus.
inherited
modInverse(unsigned modulus) integer
Returns the modular multiplicative inverse of this integer modulo modulus.
inherited
modPow(unsigned exponent, unsigned modulus) integer
Returns this integer to the power of exponent modulo modulus.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remainder(dynamic other) integer
The remainder of the truncating division of this by other.
inherited
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) integer
Euclidean modulo of this number by other.
inherited
operator &(dynamic other) integer
Bit-wise and operator.
inherited
operator *(dynamic other) integer
Multiplies this integer by other.
inherited
operator +(dynamic other) integer
Adds other to this number.
inherited
operator -(dynamic other) integer
Subtracts other from this number.
inherited
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) integer
Shift the bits of this integer to the left by shiftAmount.
inherited
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) integer
Shift the bits of this integer to the right by shiftAmount.
inherited
operator >>>(dynamic other) integer
Bitwise unsigned right shift by shiftAmount bits.
inherited
operator ^(dynamic other) integer
Bit-wise exclusive-or operator.
inherited
operator unary-() signed
Return the negative value of this integer.
inherited
operator |(dynamic other) integer
Bit-wise or operator.
inherited
operator ~() signed
The bit-wise negate operator.
inherited
operator ~/(dynamic other) integer
Truncating division operator.
inherited