Initialize _BroadcastSubscription._eventState to permit inference of non-null value

BUG=
R=floitsch@google.com

Review URL: https://codereview.chromium.org/1576153005 .
This commit is contained in:
Stephen Adams 2016-01-13 10:24:49 -08:00
parent 6c8a3e0053
commit 2bae30eb27

View file

@ -23,7 +23,7 @@ class _BroadcastSubscription<T> extends _ControllerSubscription<T>
// TODO(lrn): Use the _state field on _ControllerSubscription to
// also store this state. Requires that the subscription implementation
// does not assume that it's use of the state integer is the only use.
int _eventState;
int _eventState = 0; // Initialized to help dart2js type inference.
_BroadcastSubscriptionLink _next;
_BroadcastSubscriptionLink _previous;