copyWith method

StorageConfig copyWith({
  1. String? cachePath,
  2. String? filesPath,
})

复制并更新配置

Implementation

StorageConfig copyWith({
  String? cachePath,
  String? filesPath,
}) {
  return StorageConfig(
    cachePath: cachePath ?? this.cachePath,
    filesPath: filesPath ?? this.filesPath,
  );
}