Skip to content

Commit e933a65

Browse files
feat: enhance asset path validation and add comprehensive unit tests
1 parent 7278732 commit e933a65

File tree

2 files changed

+431
-1
lines changed

2 files changed

+431
-1
lines changed

lib/src/utils/external_asset_handler.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class ExternalAssetHandler {
4949
ExternalAssetHandler({
5050
required String assetPath,
5151
}) : _assetPath = assetPath {
52-
if (assetPath.isEmpty) {
52+
if (assetPath.trim().isEmpty) {
5353
throw ArgumentError('Asset path cannot be empty', 'assetPath');
5454
}
5555
}

0 commit comments

Comments
 (0)