parserSafe property
String
get
parserSafe
type name safe to use for dart
Implementation
String get parserSafe {
final reGeneric = RegExp(r'<([\S]*)>');
final reNull = RegExp(r'[?]');
return [
namePrintable.replaceAll(reGeneric, '').replaceAll(reNull, 'Nullable'),
reGeneric
.allMatches(namePrintable)
.map((e) => e.group(1))
.join('')
.replaceAll(reNull, 'Nullable')
].join('');
}