copyWith method

LogQuery copyWith({
  1. DateTime? dateFrom,
  2. DateTime? dateTo,
  3. int? durationFrom,
  4. int? durationTo,
  5. String? name,
  6. String? number,
  7. int? limit,
  8. bool? isOutgoing,
})

Implementation

LogQuery copyWith({
  DateTime? dateFrom,
  DateTime? dateTo,
  int? durationFrom,
  int? durationTo,
  String? name,
  String? number,
  int? limit,
  bool? isOutgoing,
}) {
  return LogQuery(
      dateFrom: dateFrom ?? this.dateFrom,
      dateTo: dateTo ?? this.dateTo,
      durationFrom: durationFrom ?? this.durationFrom,
      durationTo: durationTo ?? this.durationTo,
      name: name ?? this.name,
      number: number ?? this.number,
      isOutgoing: isOutgoing ?? this.isOutgoing,
      limit: limit ?? this.limit);
}