MeasureFormatterPlatform class abstract

The interface that implementations of flutter_measure_formatter must implement.

Platform implementations should extend this class rather than implement it as flutter_measure_formatter does not consider newly added methods to be breaking changes. Extending this class (using extends) ensures that the subclass will get the default implementation, while platform implementations that implements this interface will be broken by newly added MeasureFormatterPlatform methods.

Inheritance
  • Object
  • PlatformInterface
  • MeasureFormatterPlatform
Implementers

Constructors

MeasureFormatterPlatform()
Constructs a MeasureFormatterPlatform.

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.
formatLength(FlutterMeasureFormatterUnit unit, double value) Future<String?>
Returns formatted value as string based on selected unit.
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 Properties

instance MeasureFormatterPlatform
The default instance of MeasureFormatterPlatform to use.
getter/setter pair