fallbackForLocale method

LocaleFallbackIterator fallbackForLocale(
  1. Locale locale
)

Creates an iterator from a locale with each step of fallback.

See the Rust documentation for fallback_for for more information.

Implementation

LocaleFallbackIterator fallbackForLocale(Locale locale) {
  // This lifetime edge depends on lifetimes: 'a, 'b
  core.List<Object> aEdges = [this];
  final result = _icu4x_LocaleFallbackerWithConfig_fallback_for_locale_mv1(_ffi, locale._ffi);
  return LocaleFallbackIterator._fromFfi(result, [], aEdges);
}