FlutterMeasureFormatterWeb class

A web implementation of the FlutterMeasureFormatter plugin.

Inheritance

Constructors

FlutterMeasureFormatterWeb({@visibleForTesting Window? window})
A constructor that allows tests to override the window object used by the plugin.

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

convertLength(FlutterMeasureFormatterUnit unit, double value) Future<String?>
Returns converted value to string value based on selected unit based on your regional settings.
override
formatLength(FlutterMeasureFormatterUnit unit, double value) Future<String?>
Returns formatted value as string based on selected unit.
override
getUnitString(FlutterMeasureFormatterUnit unit) String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

registerWith(Registrar registrar) → void
Registers this class as the default instance of MeasureFormatterPlatform.