Skip to content

Commit

Permalink
fix: Fixed a bug that values were not reflected when reloading.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathrunet committed Feb 6, 2023
1 parent 30e9d1e commit 0a3a4d2
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 19 deletions.
2 changes: 1 addition & 1 deletion packages/katana_model/example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.5.9"
version: "1.5.10"
lints:
dependency: transitive
description:
Expand Down
8 changes: 0 additions & 8 deletions packages/katana_model/lib/src/collection_base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -467,14 +467,6 @@ abstract class CollectionBase<TModel extends DocumentBase>
@override
String toString() => IterableBase.iterableToShortString(this, "(", ")");

@override
// ignore: avoid_equals_and_hash_code_on_mutable_classes
bool operator ==(Object other) => hashCode == other.hashCode;

@override
// ignore: avoid_equals_and_hash_code_on_mutable_classes
int get hashCode => modelQuery.hashCode;

/// This operation is not supported by an model collection.
///
/// Model Collectionではこの操作はサポートされていません。
Expand Down
8 changes: 0 additions & 8 deletions packages/katana_model/lib/src/document_base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -518,12 +518,4 @@ abstract class DocumentBase<T> extends ChangeNotifier

@override
String toString() => "$runtimeType($value)";

@override
// ignore: avoid_equals_and_hash_code_on_mutable_classes
bool operator ==(Object other) => hashCode == other.hashCode;

@override
// ignore: avoid_equals_and_hash_code_on_mutable_classes
int get hashCode => modelQuery.hashCode ^ value.hashCode;
}
4 changes: 2 additions & 2 deletions packages/katana_model_firestore/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -300,10 +300,10 @@ packages:
dependency: "direct main"
description:
name: katana_model
sha256: aeabf0992fa9a35408f3fd10b6a9411d2f409eadb97d426164af7866eca27915
sha256: "10fa4f40f70d9e3dbadc3fd57987087ce175ee6cfd5e22c9dfc95e0fa3393cdb"
url: "https://pub.dev"
source: hosted
version: "1.5.9"
version: "1.5.10"
lints:
dependency: transitive
description:
Expand Down

0 comments on commit 0a3a4d2

Please sign in to comment.