copyWith method

  1. @override
FastAppOnboardingDocument copyWith({
  1. bool? isCompleted,
})
override

Creates a copy of this TModel but with the given fields replaced with the new values.

For example:

var myModel2 = myModel1.copyWith(age: 42);

Implementation

@override
FastAppOnboardingDocument copyWith({
  bool? isCompleted,
}) {
  return FastAppOnboardingDocument(
    isCompleted: isCompleted ?? this.isCompleted,
  );
}