Char class Null safety

The C char type.

Typically a signed or unsigned 8-bit integer. For a guaranteed 8-bit integer, use Int8 with the C int8_t type or Uint8 with the C uint8_t type. For a specifically signed or unsigned char, use SignedChar or UnsignedChar.

The Char 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 : Uint8(), Abi.androidArm64 : Uint8(), Abi.androidIA32 : Int8(), Abi.androidX64 : Int8(), Abi.fuchsiaArm64 : Uint8(), Abi.fuchsiaX64 : Int8(), Abi.iosArm : Int8(), Abi.iosArm64 : Int8(), Abi.iosX64 : Int8(), Abi.linuxArm : Uint8(), Abi.linuxArm64 : Uint8(), Abi.linuxIA32 : Int8(), Abi.linuxX64 : Int8(), Abi.linuxRiscv32 : Uint8(), Abi.linuxRiscv64 : Uint8(), Abi.macosArm64 : Int8(), Abi.macosX64 : Int8(), Abi.windowsArm64 : Int8(), Abi.windowsIA32 : Int8(), Abi.windowsX64 : Int8()})

Constructors

Char()
const

Properties

hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited