IntSignalExtension#
Kind:
extension |
Package: package:signals_core
Extension: IntSignalExtension#
extension IntSignalExtension on ReadonlySignal<int>
Helper extensions for ReadonlySignal
Members of IntSignalExtension#
| Member | Type | Signature | Description |
|---|---|---|---|
| & | method |
dart int &(int other) |
Bit-wise and operator. |
| ** | ** | method |
dart int |
| ^ | method |
dart int ^(int other) |
Bit-wise exclusive-or operator. |
| ~ | method |
dart int ~() |
The bit-wise negate operator. |
| << | method |
dart int <<(int shiftAmount) |
Shift the bits of this integer to the left by shiftAmount. |
| >> | method |
dart int >>(int shiftAmount) |
Shift the bits of this integer to the right by shiftAmount. |
| >>> | method |
dart int >>>(int shiftAmount) |
Bitwise unsigned right shift by shiftAmount bits. |
| modPow | method |
dart int modPow(int exponent, int modulus) |
Returns this integer to the power of exponent modulo modulus. |
| modInverse | method |
dart int modInverse(int modulus) |
Returns the modular multiplicative inverse of this integer |
| gcd | method |
dart int gcd(int other) |
Returns the greatest common divisor of this integer and other. |
| isEven | method |
dart bool isEven |
Returns true if and only if this integer is even. |
| isOdd | method |
dart bool isOdd |
Returns true if and only if this integer is odd. |
| bitLength | method |
dart int bitLength |
Returns the minimum number of bits required to store this integer. |
| toUnsigned | method |
dart int toUnsigned(int width) |
Returns the least significant width bits of this integer as a |
| toSigned | method |
dart int toSigned(int width) |
Returns the least significant width bits of this integer, extending the |
| - | method |
dart int -() |
Return the negative value of this integer. |
| abs | method |
dart int abs() |
Returns the absolute value of this integer. |
| sign | method |
dart int sign |
Returns the sign of this integer. |
| round | method |
dart int round() |
Returns this. |
| floor | method |
dart int floor() |
Returns this. |
| ceil | method |
dart int ceil() |
Returns this. |
| truncate | method |
dart int truncate() |
Returns this. |
| roundToDouble | method |
dart double roundToDouble() |
Returns this.toDouble(). |
| floorToDouble | method |
dart double floorToDouble() |
Returns this.toDouble(). |
| ceilToDouble | method |
dart double ceilToDouble() |
Returns this.toDouble(). |
| truncateToDouble | method |
dart double truncateToDouble() |
Returns this.toDouble(). |
| toRadixString | method |
dart String toRadixString(int radix) |
Converts this int to a string representation in the given radix. |
References#
The IntSignalExtension type is referenced and used in the following pages: