Flutter · colveor_ui
Utilities
Small helpers used throughout the packages and available to your app.
VoLogger
Dart
VoLogger.d('Loaded 12 orders');
VoLogger.w('Slow response');
VoLogger.e('Upload failed', error, stackTrace);Logging is off in release builds.
VoValidators
Each returns null when valid or an error message, so they plug straight into validator:.
| Name | Description |
|---|---|
required(value, [fieldName]) | Non-empty. |
email(value) | A valid email address. |
phone(value) | E.164 format, e.g. +2348012345678. |
password(value) | At least 8 characters with a letter and a digit. |
confirmPassword(value, original) | Matches the original. |
minLength / maxLength(value, n, [fieldName]) | Length bounds. |
Formatters
| Name | Description |
|---|---|
DateFormatter | relative ('5m ago'), absolute ('Jan 5, 2026'), date ('05/01/2026'), time ('14:30'), dateTime, tryParse. |
NumberFormatter | compact (1.2K), decimal, percent, formatBytes. |
TextFormatter | titleCase, initials, truncate, maskEmail (j***@example.com), maskPhoneNumber. |
PhoneFormatter | tryParse(phone, country:, region:) → PhoneParseResult (fullNumber, formattedNumber, national, type); tryFullNumber. |