copyWith method

PreloadSnapshot copyWith({
  1. int? total,
  2. int? completed,
  3. int? accepted,
  4. bool? done,
  5. bool? cancelled,
  6. Object? error,
  7. StackTrace? stackTrace,
})

Implementation

PreloadSnapshot copyWith({
  int? total,
  int? completed,
  int? accepted,
  bool? done,
  bool? cancelled,
  Object? error,
  StackTrace? stackTrace,
}) {
  return PreloadSnapshot(
    total: total ?? this.total,
    completed: completed ?? this.completed,
    accepted: accepted ?? this.accepted,
    done: done ?? this.done,
    cancelled: cancelled ?? this.cancelled,
    error: error ?? this.error,
    stackTrace: stackTrace ?? this.stackTrace,
  );
}