CommonUtilMethods class
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
Static Methods
-
closeKeyboard(BuildContext context)
→ Future<bool>
-
-
getModelData()
→ Map<String, dynamic>?
-
-
isConfirmPasswordValid(String confirmPassword, String password, {String? message})
→ String?
-
-
isDobValid(String dob)
→ bool
-
-
isEmailValid(String email, {String? message})
→ String?
-
-
isPasswordValid(String password, {String? message, String? passwordLFormatMessage, int? passwordLength = 8})
→ String?
-
-
isPhoneNumberValid(String phoneNumber, {String? message, int? numberLength = 10})
→ String?
-
-
isValueEmpty(String value, {String? message})
→ String?
-
-
manageTheme(bool isDarkTheme)
→ ThemeData
-
-
saveDataModelData(dynamic modelData)
→ dynamic
-
-
showSnackBar({required BuildContext context, required String message, Color? backgroundColor, Duration duration = const Duration(seconds: 2)})
→ dynamic
-