parseTypeArray static method
Parse N in type<N>
where "type" can itself be an array type.
Implementation
static dynamic parseTypeArray(String type) {
var tmp = RegExp(r'(.*)\[(.*?)\]$').firstMatch(type);
if (tmp != null) {
return tmp.group(2) == ''
? 'dynamic'
: int.parse(tmp.group(2)!, radix: 10);
}
return null;
}