toList static method

List<TypeInfo> toList(
  1. Iterable<Object> list, {
  2. bool growable = false,
})

Converts list to a List of TypeInfo.

Implementation

static List<TypeInfo> toList(Iterable<Object> list, {bool growable = false}) {
  return list.map((e) => TypeInfo.from(e)).toList(growable: growable);
}