getStorage method

Future<GetStorage> getStorage(
  1. String collectionPath
)

Implementation

Future<GetStorage> getStorage(String collectionPath) async {
  final storageName = storagePrefix.isEmpty
      ? collectionPath
      : '$storagePrefix:$collectionPath';

  await GetStorage.init(storageName);
  return GetStorage(storageName);
}