FileSymbolCache constructor

FileSymbolCache({
  1. ImageLoader? imageLoader = null,
  2. ImageBuilder imageBuilder = const ImageBuilder(),
})

Creates a new FileSymbolCache which loads symbols from file-sources and holds them in memory. By specifying the imageLoader one can define the source or method how to retrieve the binary data for a symbol.

Implementation

FileSymbolCache(
    {ImageLoader? imageLoader = null,
    this.imageBuilder = const ImageBuilder()}) {
  this.imageLoader = imageLoader ?? ImageBundleLoader(bundle: rootBundle);
}