instance property

HydratedStorage? get instance

Returns singleton instance of HydratedStorage

Implementation

static HydratedStorage? get instance => _instance;
set instance (HydratedStorage? storage)

Sets the singleton instance of HydratedStorage

Implementation

static set instance(HydratedStorage? storage) {
  _instance = storage;
  _storageToken++;
  clearAllCache();
}