Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit c40f1bf

Browse files
srawlinsnshahan
authored andcommitted
Self-execute all closures passed to assert.
In Dart 2.0, assert will only accept booleans, not closures any more. The solution to upgrade is very simple: we just self-execute any closures passed to assert today. PiperOrigin-RevId: 182406596
1 parent f83198c commit c40f1bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/model/observable/observable.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ class ObservableComposite extends ChangeNotificationProvider {
332332
stackTrace = StackTrace.current;
333333
}
334334
return true;
335-
});
335+
}());
336336
_subscriptions[stream] = stream.listen((_) {
337337
if (stackTrace != null) {
338338
print("Coalescer notified from $stackTrace");

0 commit comments

Comments
 (0)