length property

  1. @optional
int? length
getter/setter pair

The number of (non-static) fields of a PlainInstance, or the length of a List, or the number of associations in a Map, or the number of codeunits in a String, or the total number of fields (positional and named) in a Record.

Provided for instance kinds:

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

Implementation

@optional
int? length;