util library

Classes

ConfirmPasswordRule
Validates that this field's value matches the value of another field (e.g., Confirm Password).
Day
Represents a day of the month (1 to 31).
EmailRule
Validates that a field's value is a valid email format.
MaxLengthRule
Validates that a field's value does not exceed a maximum length.
MinLengthRule
Validates that a field's value meets a minimum length.
Month
Represents a month of the year (January to December) with associated properties.
MyFormFieldValidationRule
Abstract base class for all validation rules. All validation rules must implement this class.
MyFormFieldValidator
A class that holds a list of MyFormFieldValidationRules and generates a FormFieldValidator<String> function to be used with TextFormField.
NumberRangeRule
Validates that a field's value is within a specified numeric range.
NumericRule
Validates that a field's value is a numeric string.
PasswordComplexityRule
Validates that a password meets common complexity requirements (at least one uppercase, one lowercase, one digit, one special character).
RegexRule
Validates that a field's value matches a given regular expression.
RequiredRule
Validates that a field is not empty.
Time
Represents an immutable point in time, wrapping Dart's DateTime.
TimeFormat
A utility class containing common, fixed date and time format strings as static constants.
Weekday
Represents a day of the week (Monday to Sunday) with associated properties.
Year
Represents a calendar year (AD/CE).

Extensions

ContextBasicExtension on BuildContext
Provides basic getters for accessing fundamental properties from BuildContext.
ContextFocusExtension on BuildContext
Provides convenient methods related to focus and keyboard.
ContextNavigationExtension on BuildContext
Provides shortcuts for common navigation operations using Navigator.
ContextSnackBar on BuildContext
Provides convenient methods for showing snackbars.
DurationExtension on Duration
Provides convenient methods and properties for Duration.
IntDurationExtension on int
Provides convenient getters for creating Duration objects from int.
ListExtension on List<E>
Provides convenient List extensions
NumExtension on num
Provides convenient properties and methods for num (int and double).
StringExtension on String
Provides convenient methods and properties for String.
WidgetExtension on Widget