copyWith method
复制并修改配置
Implementation
StormyStorageConfig copyWith({
String? boxName,
String? prefix,
bool? encrypted,
String? storagePath,
}) {
return StormyStorageConfig(
boxName: boxName ?? this.boxName,
prefix: prefix ?? this.prefix,
encrypted: encrypted ?? this.encrypted,
storagePath: storagePath ?? this.storagePath,
);
}