CommonUtil class

Constructors

CommonUtil()

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

confirm(BuildContext context, String title, String message, dynamic onConfirm()?, dynamic onDeny()?) Future<void>
convertImage(String base64Image) Uint8List?
customError(BuildContext context, String title, dynamic message) Future<void>
defineWidthModalSize(BuildContext context) double
error(BuildContext context, String errorMessage, Exception error) Future<void>
errorException(BuildContext context, dynamic error, {bool realyError = true}) Future<void>
formatDecimal(dynamic value) String
formatDecimalPattern(dynamic value, String pattern) String
formatMoney(dynamic value) String
info(BuildContext context, String message) Future<void>
loading(BuildContext context, String title, String message, Function funcBackground) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
showAlert(BuildContext _context, String _title, List<Widget> _body, List<Widget> _actions) Future<void>
showCustomDialog(BuildContext context, Widget alertDialog) Future<void>
success(BuildContext context, String title, {String? message}) Future<void>
toastError(String message, BuildContext context) → void
toastInfo(String message, BuildContext context) → void
toastSuccess(String message, BuildContext context) → void
toastWarning(String message, BuildContext context) → void
toString() String
A string representation of this object.
inherited
warning(BuildContext context, String message) Future<void>

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

isDebug() bool
parseDouble(dynamic val) double