isAsset property
bool
get
isAsset
Checks if the string represents a valid asset filename.
Excludes hidden files (starting with '.') and empty filenames.
Implementation
bool get isAsset {
if (isEmpty) return false;
final name = split('/').last;
if (name.startsWith('.')) return false;
return true;
}