AssetManager constructor

AssetManager({
  1. String assetsDir = _defaultAssetsDir,
  2. String? assetBase,
})

Initializes AssetManager with paths.

Implementation

AssetManager({
  this.assetsDir = _defaultAssetsDir,
  String? assetBase,
})  : assert(
        assetBase == null || assetBase.endsWith('/'),
        '`assetBase` must end with a `/` character.',
      ),
      _assetBase = assetBase;