isComment method
Returns whether the string contains comment or not.
Implementation
bool isComment(String line) {
line = line.trim();
final regex = RegExp(r'#.*');
return regex.hasMatch(line) ? true : false;
}
Returns whether the string contains comment or not.
bool isComment(String line) {
line = line.trim();
final regex = RegExp(r'#.*');
return regex.hasMatch(line) ? true : false;
}