isCollection property

bool isCollection

Returns true if the static type represents a List, Set, Map, or Iterable.

Implementation

bool get isCollection => isList || isSet || isMap || isIterable;