forConfig method

LocaleFallbackerWithConfig forConfig(
  1. LocaleFallbackConfig config
)

Associates this LocaleFallbacker with configuration options.

See the Rust documentation for for_config for more information.

Implementation

LocaleFallbackerWithConfig forConfig(LocaleFallbackConfig config) {
  final temp = _FinalizedArena();
  // This lifetime edge depends on lifetimes: 'a
  core.List<Object> aEdges = [this];
  final result = _icu4x_LocaleFallbacker_for_config_mv1(_ffi, config._toFfi(temp.arena));
  return LocaleFallbackerWithConfig._fromFfi(result, [], aEdges);
}