Length class
Constructors
- Length(double value, {LengthUnit unit = LengthUnit.px})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- unit → LengthUnit
-
final
- value → double
-
final
Methods
-
copyWith(
{double? value, LengthUnit? unit}) → Length -
getUnit(
) → String -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDisplayString(
) → String -
toJson(
) → String -
toPX(
{double? constraintSize, Size? screenSize}) → double -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator.
override
-
operator unary-(
) → Length