findAssets abstract method

List<Asset> findAssets(
  1. PathMatcher matcher, {
  2. String? subDir,
})

Finds assets within the root package that match the matcher pattern.

Useful for locating additional input files needed during generation, such as template files or configuration files.

@param matcher The path matcher to match against files in the root package @param subDir An optional subdirectory to limit the search within the root package. @return A list of matching assets

Implementation

List<Asset> findAssets(PathMatcher matcher, {String? subDir});