processSvgsUnderDir function

Future<void> processSvgsUnderDir(
  1. String asset
)

Implementation

Future<void> processSvgsUnderDir(String asset) async {
  final assetFolder = Directory(asset);
  await for (final entity in assetFolder.list(recursive: true)) {
    if (entity is File) {
      if (entity.path.lastIndexOf('.svg') != -1) {
        // ignore: avoid_print
        print('process file: ${entity.path}');
        await processSvg(entity);
      }
    }
  }
}