CommonHelper class

Constructors

CommonHelper()

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

closeModal() → void
hideLoading() → void
showActionSheet({Widget? title, Widget? content, List<Widget>? actions, Widget? cancel, VoidCallback? onCancel, ValueChanged<int>? onConfirm}) → void
showAlertDialog({Widget? title, required Widget content, Widget? cancel, Widget? confirm, VoidCallback? onCancel, VoidCallback? onConfirm, List<CupertinoDialogAction>? actions, bool barrierDismissible = true, bool isIOSStyle = true}) → void
showDatePicker({dynamic onConfirm(DateTime date)?, dynamic onCancel()?, Widget? cancel, Widget? confirm, bool useSafeArea = false}) → dynamic
showDialog({required Widget content, Widget? title, List<Widget>? actions, Widget? cancel, Widget? confirm, VoidCallback? onConfirm, VoidCallback? onCancel, MainAxisAlignment? actionsAlignment, bool close = false, Widget? foot, bool barrierDismissible = true}) → void
showLoading({String? text}) → void
showModal(Widget content) → void
showPicker({required List<Widget> children, dynamic onConfirm(int selectIndex)?, dynamic onCancel()?, Widget? cancel, Widget? confirm, bool useSafeArea = false, double itemExtent = 30, int initialItem = 0, Widget selectionOverlay = const CupertinoPickerDefaultSelectionOverlay()}) → dynamic
showToast(dynamic text) → dynamic