ContractProp<T> class
Contract prop
contract prop value from contract defaultValue (optional) default value for prop, used if contract return nullable value
Constructors
-
ContractProp({required ContractHandler<
T> contract, T? defaultValue})
Properties
-
contract
→ ContractHandler<
T> -
final
- defaultValue → T?
-
final
- 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
-
value(
BuildContext context) → T?
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited