Remove unnecessary `?`s from web_ui. (#21444)
* Remove unnecessary `?`s from web_ui. In https://dart-review.googlesource.com/c/sdk/+/163841, dart's flow analysis is being changed so that an assignment like this: T? x = <non-nullable value>; causes `x` to be immediately promoted to type `T`. This exposed two instances in which a variable was unnecessarily given a nullable type. To avoid warnings, we need to fix these two types before https://dart-review.googlesource.com/c/sdk/+/163841 can land.
Showing
想要评论请 注册 或 登录