Int class final
The C int
type.
Typically a signed 32-bit integer.
For a guaranteed 32-bit integer, use Int32 with the C int32_t
type.
For an unsigned int
, use UnsignedInt.
The Int type is a native type, and should not be constructed in Dart code. It occurs only in native type signatures and as annotation on Struct and Union fields.
- Inheritance
- Annotations
-
- @Since('2.17')
- @AbiSpecificIntegerMapping({Abi.androidArm : Int32(), Abi.androidArm64 : Int32(), Abi.androidIA32 : Int32(), Abi.androidX64 : Int32(), Abi.androidRiscv64 : Int32(), Abi.fuchsiaArm64 : Int32(), Abi.fuchsiaX64 : Int32(), Abi.fuchsiaRiscv64 : Int32(), Abi.iosArm : Int32(), Abi.iosArm64 : Int32(), Abi.iosX64 : Int32(), Abi.linuxArm : Int32(), Abi.linuxArm64 : Int32(), Abi.linuxIA32 : Int32(), Abi.linuxX64 : Int32(), Abi.linuxRiscv32 : Int32(), Abi.linuxRiscv64 : Int32(), Abi.macosArm64 : Int32(), Abi.macosX64 : Int32(), Abi.windowsArm64 : Int32(), Abi.windowsIA32 : Int32(), Abi.windowsX64 : Int32()})
Constructors
- Int()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited