clone method

DBModel clone()

Should return a copy of DBModel. This method is not use by any of the classes in this library. So, implement this method if you see the need.

Eg:

class Person extends DBModel {
  final String name;
  final int age;
  final double height;

  Person({this.name, this.height, this.age});

  @override
  Person clone({String name, int age, double height}) {
    return Person(
      name: name ?? this.name,
      age: age ?? this.age,
      height: height ?? this.height,
    );
  }
}

Implementation

DBModel clone() {
  return _DummyDBModel(ref: ref);
}