isGenerated static method
Generated code: never copied from the working copy (it belongs to the working copy's branch), and kept in the workspace between builds so build_runner only regenerates what changed.
Implementation
static bool isGenerated(String rel) {
final name = p.posix.basename(rel);
return _generatedSuffixes.any(name.endsWith) ||
_flutterGenerated.contains(rel) ||
name.startsWith('GeneratedPluginRegistrant.');
}