Skip to content

Commit

Permalink
improve: make pub point 140 (flutter analyze -> No issues found!)
Browse files Browse the repository at this point in the history
  • Loading branch information
ali77gh committed Mar 19, 2023
1 parent d8108c0 commit d316672
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/src/telescope.dart
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ class Telescope<T> {
/// [state] will rebuild on value change
/// and this function also returns value to use it on build function.
T watch(State state) {
// ignore: invalid_use_of_protected_member
subscribe(state.setState);
return holden;
}
Expand Down
5 changes: 3 additions & 2 deletions lib/src/type_check.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ class TypeCheck {
}

static bool implementsHashCodeProperty<T>(T value) {
if (value == null)
return true; // can't check it so we will wait until next value set
if (value == null) {
return true;
} // can't check it so we will wait until next value set
return value.hashCode != identityHashCode(value);
}

Expand Down

0 comments on commit d316672

Please sign in to comment.