appendClassContent method
Implementation
String appendClassContent(String className, String value) {
var matches =
RegExp('class $className {.*?(^})', multiLine: true, dotAll: true)
.allMatches(this);
var match = matches.first;
return insert(match.end - 1, value);
}