ValidatedQuantity class
- Inheritance
- Implemented types
Constructors
- ValidatedQuantity({required UcumDecimal value, String? unit})
- ValidatedQuantity.fromBigInt(BigInt number, {String? unit})
-
factory
- ValidatedQuantity.fromNumber(num number, {String? unit})
-
factory
- ValidatedQuantity.fromPair(Pair pair)
- ValidatedQuantity.fromString(String string)
-
factory
Properties
- days → num?
-
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- hours → num?
-
no setter
- isDefiniteDuration → bool
-
no setter
- isDuration → bool
-
no setter
- isTimeQuantity → bool
-
no setter
- milliseconds → num?
-
no setter
- minutes → num?
-
no setter
- months → num?
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seconds → num?
-
no setter
- unit ↔ String
-
getter/setter pairinherited
- value ↔ UcumDecimal
-
getter/setter pairinherited
- weeks → num?
-
no setter
- years → num?
-
no setter
Methods
-
abs(
) → ValidatedQuantity -
compareTo(
ValidatedQuantity other) → int -
Compares this object to another object.
override
-
convertTo(
String newCode) → ValidatedQuantity -
copyWith(
{UcumDecimal? value, String? unit}) → ValidatedQuantity -
equivalent(
Object other) → bool -
isValid(
) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator %(
Object other) → ValidatedQuantity -
operator *(
Object other) → ValidatedQuantity -
operator +(
Object other) → ValidatedQuantity? -
operator -(
Object other) → ValidatedQuantity? -
operator /(
Object other) → ValidatedQuantity -
operator <(
Object other) → bool -
operator <=(
Object other) → bool -
operator ==(
Object other) → bool -
The equality operator.
override
-
operator >(
Object other) → bool -
operator >=(
Object other) → bool -
operator ~/(
Object other) → ValidatedQuantity
Static Properties
- valueRegex ↔ RegExp
-
getter/setter pair
Static Methods
-
isValidatedQuantity(
Object other) → bool