getArrayMatch function
Match the typeString with the regex
Example: 'u8; 10
' -> ['u8; 10
', 'u8', '10']
Example: '[u8; 2
; 100]' -> ['u8; 100
', 'u8; 2
', '100']
Implementation
RegExpMatch? getArrayMatch(String typeString) {
return RegExp(r'\[(.+); ([0-9]+)\]$').firstMatch(typeString);
}