FormuxInputValuable class abstract

Inheritance

Constructors

FormuxInputValuable({required Valuable? value, List<Valuable>? items, bool required = true, Future<ValuableList>? fetch})

Properties

display bool
Display error
no setterinherited
displayOnUpdate bool
Display changes in every input value change
getter/setter pairinherited
error String?
Current input error
no setterinherited
errors bool
Show input error
getter/setter pairinherited
fetch Future<ValuableList>?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isLoading bool
Getter Get is input is loading
no setterinherited
items List<Valuable>
getter/setter pair
messages List<String>
Error messages
no setterinherited
pass bool
Getter Input passed or failed
no setterinherited
required bool
Input value is required
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value ↔ Valuable?
Getter Input value
getter/setter pairinherited

Methods

addError(String message) → void
Add custom error
inherited
addItemValues({required String title, required String value}) → void
Add items to items list from valuable values
assertion(bool condition, String message) → void
Assertion for invalidate input
inherited
clear() → void
Abstract Clear input
inherited
clearItems() → void
Clear items list
getItem(int index) → Valuable?
Get item from index
getValueIndexList() int?
Get the current value index from items list
hideErrors() → void
Hide input errors
inherited
isRequired() → void
Make input required
inherited
loaded() → void
Is loaded flag
inherited
loading() → void
Is loading flag
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
passer() → void
Throw if input isn't pass
inherited
showErrors() → void
Show input errors
inherited
toString() String
A string representation of this object.
inherited
update(String id) → void
Update from id
validate() → void
Validate input
inherited
validator() → void
Abstract Input validator
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited