CommonFunctions class
Constructors
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
-
showAlertDialog(
{required String alertMessage, required BuildContext context}) → void - to show alert dialog to user to show alert messages to user
-
showBottomSheet(
{required Widget child, required BuildContext context}) → void - to show bottom sheet in different screens which requires child widget and context
-
showConfirmationDialog(
{required String confirmationMessage, required String confirmButtonText, required String cancelButtonText, required BuildContext context, required void onConfirm()?}) → void - to show alert dialog to user to confirm request or cancel request
-
showError(
{required dynamic data, required BuildContext context}) → void - to show API calling errors
-
showSuccessModal(
{required BuildContext context, bool success = true}) → void - to show success message of payment to user
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited