MeasureUnitParser class final

An ICU4X Measure Unit Parser object, capable of parsing the CLDR unit identifier (e.g. meter-per-square-second) and get the MeasureUnit.

See the Rust documentation for MeasureUnitParser for more information.

Implemented types

Constructors

MeasureUnitParser.new()
Construct a new MeasureUnitParser instance using compiled data.
factory
MeasureUnitParser.withProvider(DataProvider provider)
Construct a new MeasureUnitParser instance using a particular data source.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse(String unitId) MeasureUnit?
See the Rust documentation for parse for more information.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited