computePlatformResolvedLocale method

  1. @Deprecated('Use WidgetTester.platformDispatcher.computePlatformResolvedLocale(supportedLocales) instead. ' 'Deprecated to prepare for the upcoming multi-window support. ' 'This feature was deprecated after v3.9.0-0.1.pre.')
  2. @override
Locale? computePlatformResolvedLocale(
  1. List<Locale> supportedLocales
)
override

Performs the platform-native locale resolution.

Each platform may return different results.

If the platform fails to resolve a locale, then this will return null.

This method returns synchronously and is a direct call to platform specific APIs without invoking method channels.

Implementation

@Deprecated(
  'Use WidgetTester.platformDispatcher.computePlatformResolvedLocale(supportedLocales) instead. '
  'Deprecated to prepare for the upcoming multi-window support. '
  'This feature was deprecated after v3.9.0-0.1.pre.'
)
@override
Locale? computePlatformResolvedLocale(List<Locale> supportedLocales) {
  return platformDispatcher.computePlatformResolvedLocale(supportedLocales);
}