parse method

TimeZone? parse(
  1. String value,
  2. String region
)

See the Rust documentation for parse for more information.

Implementation

TimeZone? parse(String value, String region) {
  final temp = _FinalizedArena();
  final result = _icu4x_WindowsParser_parse_mv1(_ffi, value._utf8AllocIn(temp.arena), region._utf8AllocIn(temp.arena));
  return result.address == 0 ? null : TimeZone._fromFfi(result, []);
}