Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 1.06 KB

misc.md

File metadata and controls

38 lines (29 loc) · 1.06 KB

misc

TwoWayBinding
final binding = TwoWayBinding<String>()
    .bindDataRule(RequiredRule());
    
// Please close the 2-way binding if it is not useful anymore.
await binding.close();
Localized
A generic class able to localize and translate messages to the GUI (users).
Data rules
Here the list of all possible data rules.
* `ConfirmedRule`, a bool is true.
* `EmailRule`, an email is syntactically correct.
* `MaxRule`, max value possible.
* `MinRule`, min value possible.
* `RegexRule`, define a regex for validating.
* `RequiredRule`, data required.
* `SameRule`, same data of another field.
* `SizeRule`, size value possible.
* `TrimRule`, get the string without any leading and trailing whitespace.
TwoWayBindingUtils
* `TwoWayBindingUtils.validate()`, perform a validation against the provided bindings.