isContainerType static method

bool isContainerType(
  1. String type
)

Check if a type is a container type (List, Set, Map)

Implementation

static bool isContainerType(String type) {
  return type == 'List' || type == 'Set' || type == 'Map';
}