forked from firka/flutter
Eliminate unnecessary null check in fixture (flutter/engine#28281)
The type of `PlatformDispatcher.instance.locales` is `List<Locale>`, which precludes either null list or a null value in the list, for that matter.
This commit is contained in:
@@ -677,7 +677,7 @@ void can_display_platform_view_with_pixel_ratio() {
|
||||
@pragma('vm:entry-point')
|
||||
void can_receive_locale_updates() {
|
||||
PlatformDispatcher.instance.onLocaleChanged = (){
|
||||
signalNativeCount(PlatformDispatcher.instance.locales!.length);
|
||||
signalNativeCount(PlatformDispatcher.instance.locales.length);
|
||||
};
|
||||
signalNativeTest();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user