AssetSource constructor
AssetSource(
- String path
Implementation
AssetSource(this.path) {
if (path.isEmpty) {
throw ArgumentError('Asset path cannot be empty');
}
if (path.contains(_parentDirReference)) {
throw ArgumentError('Asset path cannot contain "$_parentDirReference"');
}
if (path.startsWith(_httpScheme)) {
throw ArgumentError('Asset path cannot be a URL');
}
}