tch_common_widgets library

Functions

getCommonTheme(BuildContext context) CommonTheme
Shorthand to get CommonTheme from context
validateEmail(String? value) bool
Validate String value is valid email
validateRequired(String? value) bool
Validate String value is not empty (whitespace-only strings are also considered empty)
validateRequiredAllowWhitespaceOnly(String? value) bool
Validate String value is not empty (whitespace-only strings are considered valid)
validateValidations<T>(List<FormFieldValidation<T>> validations, T? value) String?
Validate all provided FormFieldValidations, stop on first error and return it