length property Null safety

int? length
optional">@optionalread / writeoverride

The length of a List or the number of associations in a Map or the number of codeunits in a String.

Provided for instance kinds:

  • String
  • List
  • Map
  • Uint8ClampedList
  • Uint8List
  • Uint16List
  • Uint32List
  • Uint64List
  • Int8List
  • Int16List
  • Int32List
  • Int64List
  • Float32List
  • Float64List
  • Int32x4List
  • Float32x4List
  • Float64x2List

Implementation

@optional
int? length;