registerStorageService function
Registers the storage
object within the current service scope.
The provided storage
object will be available via the top-level
storageService
getter.
Calling this function outside of a service scope will result in an error. Calling this function more than once inside the same service scope is not allowed.
Implementation
void registerStorageService(Storage storage) {
ss.register(_storageKey, storage);
}