FileSymbolCache constructor

FileSymbolCache({
  1. ImageBuilder imageBuilder = const ImageBuilder(),
})

Creates a new FileSymbolCache.

By default, it includes a loader for symbols from the app's asset bundle (using the "jar:" prefix). Additional loaders can be added with addLoader.

Implementation

FileSymbolCache({this.imageBuilder = const ImageBuilder()}) {
  imageLoaders["jar:"] = ImageBundleLoader(bundle: rootBundle);
}