copyWith method

StormyStorageConfig copyWith({
  1. String? boxName,
  2. String? prefix,
  3. bool? encrypted,
  4. String? storagePath,
})

复制并修改配置

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,
  );
}