smart_api_hooks library

Classes

SmartApiHooks
Global UI hooks that SmartApiClient fires instead of depending on any concrete loader/snackbar/toast package.

Enums

SmartApiMsgType
The kind of message being shown via SmartApiHooks.showMessage.

Typedefs

MessageCb = void Function(String message, {SmartApiMsgType? type})
Signature for SmartApiHooks.showMessage: a plain string message plus an optional SmartApiMsgType describing how it should look.
VoidCb = void Function()
A simple no-argument callback, used for loader show/hide and retry hooks.