UFUtils class

Constructors

UFUtils.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

applyEncryption bool
getter/setter pair
appName String
getter/setter pair
appVersion String
getter/setter pair
baseUrl String
getter/setter pair
buttonGradient Gradient
getter/setter pair
commonMethods UFUCommonMethods
All common methods can be accessed using commonMethods object
getter/setter pair
encryptionIV String
getter/setter pair
fcmToken String
getter/setter pair
firebaseUtils UFFirebaseUtils
Firebase Handling
getter/setter pair
fontFamily String
getter/setter pair
isRtl bool
no setter
maxAllowedFileSize int
Storage Max File Size
getter/setter pair
permissionUtils UFPermissionUtils
Permission Handling
getter/setter pair
picker UFFilePickerUtil
File picker methods can be accessed using picker object
getter/setter pair
preferences UFPrefUtils
Shared Preferences Handling
getter/setter pair
refreshToken ↔ dynamic Function()?
getter/setter pair
restrictFolderStructure bool
getter/setter pair
singleAttachmentMaxSize int
getter/setter pair
socketBaseUrl String
getter/setter pair
startDestination String
getter/setter pair
totalAttachmentMaxSize int
getter/setter pair
ufuLoaderKey GlobalKey<UFUConfirmationDialogState>
getter/setter pair
ufuTokenExpireKey GlobalKey<UFUConfirmationDialogState>
getter/setter pair
xPortal String
getter/setter pair

Static Methods

addArguments(Map<String, int> args) → void
addComasToNumber(String? data) String?
Number Formatting
confirmPasswordValidator(String? value, {bool isRequired = true, required String password}) String?
convertEmailListToStringList(List? models, {bool? isAlreadyString}) List<String>
copyToClipBoard(String text) Future<void>
dayWishes() String?
emailValidator(String? value, {bool isRequired = true, String field = "Email"}) String?
Form Validations
encodeToHTMLString(Map<String, dynamic> json) String
encodeToHTMLString - takes json as input and replaces special
fetchCurrentLocation() Future<LatLng?>
formatCardNumber(String input) String
formatCompleteDateTime(DateTime dateTime, {String format = 'dd/MM/yyy hh:mm a'}) String?
formatDate(DateTime dateTime, {String format = 'dd/MM/yyyy'}) String?
Date-Time Formatting
formatTime(DateTime dateTime, {String format = 'hh:mm a'}) String?
getEmailTo(String val) String
getIconTypeAccordingToExtension(String filePath, {String? extensionName}) UFUThumbIconType
getOldAppDBPath(String dataBaseName) Future<String>
groupBy<S, T>(Iterable<S> values, T key(S)) Map<T, List<S>>
handleError(Object e) Future<void>
hideKeyboard() → dynamic
hideLoaderDialog() → void
isInvalidValue(dynamic val, {bool shouldNotZero = false}) bool
isLoaderVisible() bool
isTokenExpiredVisible() bool
isTrue(dynamic value) bool
isTrueReverse(bool? value) int
isValueNullOrEmpty(dynamic value) bool
launchCall(String phoneNumber) → dynamic
launchEmail(String email, {String subject = ''}) → dynamic
launchShareIntent(String message) → dynamic
launchSms(String phoneNumber) → dynamic
launchUrl(String url, {bool isInExternalMode = true}) → dynamic
openAppSetting() Future<bool>
openLocationSetting() → dynamic
parseCompleteDateTime(String completeDateTimeString, {String format = 'dd/MM/yyy hh:mm a'}) DateTime?
parseDate(String dateString, {String format = 'dd/MM/yyy'}) DateTime?
parseHtmlString(String htmlString) String
parseHtmlToText(String html) String
parseTime(String timeString, {String format = 'hh:mm a'}) DateTime?
passwordValidator(String? value, {bool isRequired = true, String field = "Password"}) String?
phoneValidator(String? value, {bool isRequired = true, String field = "Phone Number", RegExp? phoneRegex}) String?
shouldApplySafeArea(BuildContext context) bool
showKeyboard() → dynamic
showUnsavedChangesConfirmation({int? unsavedResourceId}) → void
textValidator(String? value, {bool isRequired = true, int minCount = 3}) String?
timeAgo(DateTime dateTime) String?
timeOfDayToDateTime(TimeOfDay time) DateTime?

Constants

transitionDuration → const int
Animation Transition Duration