shouldInclude property
bool
get
shouldInclude
Checks if this asset should be included in generation.
Excludes certain files and directories that shouldn't be processed:
- Hidden files (starting with '.')
- Generated files (ending with '_gen.dart')
- System files (like .DS_Store)
Implementation
bool get shouldInclude {
if (name.startsWith('.')) return false;
if (name.endsWith('_gen')) return false;
if (fileName == '.DS_Store') return false;
return true;
}