forkByMarker method

void forkByMarker(
  1. DataProvider other
)

Creates a provider that tries the current provider and then, if the current provider doesn't support the data key, another provider other.

This takes ownership of the other provider, leaving an empty provider in its place.

See the Rust documentation for ForkByMarkerProvider for more information.

Throws DataError on failure.

Implementation

void forkByMarker(DataProvider other) {
  final result = _icu4x_DataProvider_fork_by_marker_mv1(_ffi, other._ffi);
  if (!result.isOk) {
    throw DataError.values[result.union.err];
  }
}