You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Give variable firstOpen a type to prepare for Dart language bugfix.
This change prepares for the Dart language to roll out the fix for
dart-lang/language#1785. This bug prevents
implicitly typed condition variables from participating in type
promotion in some circumstances (see the bug for more details).
There's one variable in this package that's affected - the `firstOpen`
variable. Since the bug only occurs when the condition variable is
implicitly typed, we can ensure a smooth rollout by giving `firstOpen`
an explicit `bool` type. Once the fix has fully rolled out, and the
package depends on a version of Dart that includes the bug fix, we
will be able to remove this explicit type once again.
0 commit comments