copyWith method

TimeZone copyWith({
  1. String? name,
  2. int? offset,
  3. DateTime? currentTime,
  4. bool? isDst,
  5. int? dstSavings,
})

Implementation

TimeZone copyWith({
  String? name,
  int? offset,
  DateTime? currentTime,
  bool? isDst,
  int? dstSavings,
}) {
  return TimeZone(
    name: name ?? this.name,
    offset: offset ?? this.offset,
    currentTime: currentTime ?? this.currentTime,
    isDst: isDst ?? this.isDst,
    dstSavings: dstSavings ?? this.dstSavings,
  );
}