DataType.fromString constructor
DataType.fromString(
- String type
Implementation
factory DataType.fromString(String type) {
assert(type.contains('.'),
"A data type must contain both a namespace and a name separated with a '.'");
final String name = type.split('.').last;
final String namespace = type.substring(0, type.indexOf(name) - 1);
return DataType(namespace, name);
}