CustomUnitDiscovery class
Unit capabilities reported by a Core token contract.
- Annotations
-
- @immutable
Constructors
-
CustomUnitDiscovery({required List<
String> supportedUnits, required String preferredUnit}) -
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isValid → bool
-
Whether this response satisfies the Core custom-unit contract.
no setter
- preferredUnit → String
-
The contract's default display and calculation unit.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
supportedUnits
→ List<
String> -
Every unit reported by
supportedUnits().final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
supports(
String unit) → bool -
Whether
unitcan be used with unit-aware contract methods. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited