isLogFile method
Checks if this is matching log file.
Implementation
bool isLogFile(String filePath) {
return _fileRegExp.allMatches(filePath).map((match) {
if (match.groupCount > 0) {
return true;
} else {
return false;
}
}).lastWhere((_) => true, orElse: () => false);
}