getPath method

String? getPath(
  1. StorageType type
)

根据存储类型获取对应路径

Implementation

String? getPath(StorageType type) {
  switch (type) {
    case StorageType.cache:
      return cachePath;
    case StorageType.files:
      return filesPath;
  }
}