Skip to content

Commit

Permalink
Update debug properties
Browse files Browse the repository at this point in the history
  • Loading branch information
sunarya-thito committed Oct 26, 2024
1 parent 861f176 commit 1fd29ab
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/src/data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -677,8 +677,7 @@ class _InheritedData<T> extends InheritedWidget {

@override
String toStringShort() {
final String type = objectRuntimeType(this, 'Data');
return key == null ? type : '$type-$key';
return key == null ? 'Data<$T>' : 'Data<$T>-$key';
}

@override
Expand Down Expand Up @@ -1310,6 +1309,11 @@ class _InheritedModel extends InheritedModel<ModelKey> {
}
}

@override
String toStringShort() {
return key == null ? 'Model' : 'Model-$key';
}

@override
bool updateShouldNotify(covariant _InheritedModel oldWidget) {
for (final model in data) {
Expand Down

0 comments on commit 1fd29ab

Please sign in to comment.