copyWith method

FileOptions copyWith({
  1. FileMode? mode,
  2. bool? create,
  3. bool? truncate,
  4. bool? exclusive,
  5. bool? direct,
  6. Durability? durability,
  7. PerformanceProfile? profile,
  8. int? readAhead,
})

Implementation

FileOptions copyWith({
  FileMode? mode,
  bool? create,
  bool? truncate,
  bool? exclusive,
  bool? direct,
  Durability? durability,
  PerformanceProfile? profile,
  int? readAhead,
}) => FileOptions(
  mode: mode ?? this.mode,
  create: create ?? this.create,
  truncate: truncate ?? this.truncate,
  exclusive: exclusive ?? this.exclusive,
  direct: direct ?? this.direct,
  durability: durability ?? this.durability,
  profile: profile ?? this.profile,
  readAhead: readAhead ?? this.readAhead,
);