UnitConverter class
Unit conversion utilities for CSS to Flutter
Constructors
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
convertToDouble(
String value) → String - Convert any unit to Flutter double format
-
convertToInt(
String value) → String - Convert to Flutter int format
-
convertToString(
String value) → String - Convert to Flutter string format (for spacing, etc.)
-
emToDouble(
String emValue) → String - Convert em value to Flutter double format (pixels)
-
percentToDouble(
String percentValue) → String - Convert percentage to Flutter double format (0.0 to 1.0)
-
pxToDouble(
String pxValue) → String - Convert px value to Flutter double format
-
remToDouble(
String remValue) → String - Convert rem value to Flutter double format (pixels)