CommonUtilMethods class

Constructors

CommonUtilMethods()

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 Methods

closeKeyboard(BuildContext context) Future<bool>
createMultipartRequest({required bool isField, required bool isFile}) → dynamic
getModelData() Map<String, dynamic>?
isConfirmPasswordValid(String password, String confirmPassword) bool
isDobValid(String dob) bool
isEmailValid(String email) bool
isNameValid(String name) bool
isPasswordValid(String password) bool
isPhoneNumberValid(String phoneNumber) bool
isValueEmpty(String value) bool
manageTheme(bool isDarkTheme) ThemeData
saveDataModelData(dynamic modelData) → dynamic
showSnackBar({required String message, Color? backgroundColor, Duration duration = const Duration(seconds: 2)}) → dynamic