flutter_essentials_kit library
Classes
- ConfirmedRule
- Definition of the confirmation data rule, validating if a bool is true.
- CourtesyWidget
- Create a courtesy widget with an optional leading widget, a required title, optional message, optional action and onPressed callback on that action.
-
DataRule<
F, T> - Definition of a data rule, used to process and validate data.
- EmailRule
- Definition of the valid email data rule.
- FlutterEssentialsKitLocalizations
-
Callers can lookup localized strings with an instance of FlutterEssentialsKitLocalizations
returned by
FlutterEssentialsKitLocalizations.of(context)
. - Localized
- Genetic class able to localize and translate messages to the users.
- LowerCaseRule
- Get the string in lower case.
-
MaxRule<
T> - Definition of the max value data rule.
-
MinRule<
T> - Definition of the min value data rule.
- RegexRule
- Definition of the valid data using regex.
-
RequiredRule<
T> - Definition of required data.
-
SameRule<
T extends Comparable> - Definition of the same data of another field.
-
SizeRule<
T> - Definition of the size value data rule.
- Spacing
- Create a space between widgets.
- TrimRule
- Get the string without any leading and trailing whitespace.
-
TwoWayBinding<
T> - A controller to perform 2 way binding between the field and the GUI element.
-
TwoWayBindingBuilder<
T> - Widget that builds itself based on the latest data of a TwoWayBinding.
- UpperCaseRule
- Get the string in upper case.
Mixins
Extensions
- ColorCommons on Color
- CommonFunctions on T
- DateTimeOperations on DateTime
-
IterableFiltering
on Iterable<
T> -
IterableGrouping
on Iterable<
T> -
IterableNum
on Iterable<
N>
Functions
Typedefs
- DataRuleErrorLocalizedMessage = String? Function(BuildContext context)
- Custom localized message type.
-
IterableGroupingCriteria<
K> = int Function(K, K) - Grouping elements using a criteria.
-
LetFunction<
T, U> = U Function(T it) - The let function block.
-
TwoWayBindingDataBuilder<
T> = Widget Function(BuildContext context, TextEditingController controller, T? data, dynamic onChange(T?), Localized? error) -
Typedef of TwoWayBindingBuilder.
The
data
anderror
can be null. The other parameters are not-null.
Exceptions / Errors
- ConfirmedRuleError
- Confirmed data rule error.
- DataRuleError
- Genetic error class for data broken rule.
- EmailRuleError
- Invalid email data rule error.
- LocalizedError
- Genetic error class able to localize and translate messages to the users.
- LocalizedException
- Genetic Exception class able to localize and translate messages to the users.
- MaxRuleError
- Max value data rule error.
- MinRuleError
- Min value data rule error.
- RegexRuleError
- Invalid email data rule error.
- RequiredRuleError
- Required data rule error.
- SameRuleError
- Same value data rule error.
- SizeRuleError
- Size value data rule error.