init method

void init({
  1. String containerName = 'GetStorage',
})

Initializes the storage with an optional containerName.

The default containerName is 'GetStorage'. This method must be called before using other methods.

Implementation

void init({String containerName = 'GetStorage'}) async {
  _storage = GetStorage(containerName);
}