getPreferredLanguages method

Future<List?> getPreferredLanguages()

Implementation

Future<List?> getPreferredLanguages() {
  final List? languages =
      web.window.navigator.languages.toDart.map((e) => e.toDart).toList();
  return Future.value(languages);
}