show_error_handler library

Classes

WcAlert
WcBaseError
A base class for representing errors within the application.
WcModal

Functions

showWcAlert(BuildContext context, WcBaseError error, {Color backgroundColor = Colors.deepPurple, Color textColor = Colors.white, int durationSeconds = 3}) → void
showWcModal(BuildContext context, WcBaseError error, {Color backgroundColor = Colors.deepPurple, Color textColor = Colors.white, IconData icon = Icons.error_outline, Color iconColor = Colors.white, int durationSeconds = 3, double height = 300, double width = 200, Alignment alignment = Alignment.center, VoidCallback? onPressed, String buttonText = 'Action'}) → void