autoRegisterUsingAppAsset method
Implementation
void autoRegisterUsingAppAsset(List<AppAsset> appAssets) {
for (var asset in appAssets) {
final pathRegex = RegExp(r'([^/]+)\.\w+$');
final retrievedNameFromPath = pathRegex.firstMatch(asset.path)?.group(0) ?? asset.id;
register(asset.name ?? retrievedNameFromPath, asset.path);
}
}