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>
getModelData() Map<String, dynamic>?
isConfirmPasswordValid(String confirmPassword, String password, {String? message, String? confirmPasswordValidationMessage = "Please enter valid confirm password", String? confirmPasswordValidationMessage2 = "Password and confirm password should be same"}) String?
isDobValid(String dob) bool
isEmailValid(String email, {String? message, String? emailValidationMessage = "Please enter valid email", String? emailValidationMessage2 = "Please enter valid email"}) String?
isPasswordValid(String password, {String? message, String? passwordLFormatMessage, int? passwordLength = 8, String? passwordValidationMessage = "Please enter valid password", String? passwordLengthValidationMessage = "Password should be at least 8 characters"}) String?
isPhoneNumberValid(String phoneNumber, {String? message, int? numberLength = 10, String? numberValidationMessage = "Please enter valid phone number", String? numberValidationMessage2 = "Phone number should be 10 digits"}) String?
isValueEmpty(String value, {String? message}) String?
saveDataModelData(dynamic modelData) → dynamic
showSnackBar({required BuildContext context, required String message, Color? backgroundColor, Duration duration = const Duration(seconds: 2)}) → dynamic