EnvLoader constructor
EnvLoader({
- AssetBundle? bundle,
Creates an EnvLoader backed by the given _bundle.
Defaults to rootBundle when no bundle is supplied, which is the correct choice for production. Pass a custom bundle in tests.
Implementation
EnvLoader({AssetBundle? bundle}) : _bundle = bundle ?? rootBundle;