Skip to content

Commit

Permalink
Minor comment adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
M1chlCZ committed Oct 4, 2024
1 parent 1185c02 commit 2889743
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions glade_forms/lib/src/model/glade_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ abstract class GladeModel extends ChangeNotifier {
_lastUpdates.add(input);
} else {
_lastUpdates = [input];
notifyDependecies();
notifyDependencies();
notifyListeners();
}
}
Expand All @@ -116,12 +116,12 @@ abstract class GladeModel extends ChangeNotifier {

_groupEdit = false;

notifyDependecies();
notifyDependencies();

notifyListeners();
}

void notifyDependecies() {
void notifyDependencies() {
final updatedKeys = _lastUpdates.map((e) => e.inputKey);
for (final input in inputs) {
final union = input.dependencies.map((e) => e.inputKey).toSet().union(updatedKeys.toSet());
Expand All @@ -131,6 +131,8 @@ abstract class GladeModel extends ChangeNotifier {
}

/// Sets a new pure state for all inputs in the model.
///
/// When [copyValueToInitialValue] is true, input's initialValue is overriden by current value.
void setAsNewPure({
bool invokeUpdate = true,
bool copyValueToInitialValue = false,
Expand Down

0 comments on commit 2889743

Please sign in to comment.