//custom apivar cancel = BotToast.showCustomNotification(...)
var cancel = BotToast.showCustomText(...)
var cancel = BotToast.showCustomLoading(...)
var cancel = BotToast.showAnimationWidget(...)
...
cancel(); //close
5. Modify Global Configuration
/// For example: Globally change the animation duration for standard notifications to 1 second.BotToast.defaultOption.notification.animationDuration = constDuration(seconds: 1);
/// For more default options, refer to the following configurations:/// [BotToast.defaultOption.simpleNotification] corresponds to the default values of [showSimpleNotification]./// [BotToast.defaultOption.notification] corresponds to the default values of [showNotification]./// [BotToast.defaultOption.customNotification] corresponds to the default values of [showCustomNotification]./// [BotToast.defaultOption.text] corresponds to the default values of [showText]./// [BotToast.defaultOption.customText] corresponds to the default values of [showCustomText]./// [BotToast.defaultOption.loading] corresponds to the default values of [showLoading]./// [BotToast.defaultOption.customLoading] corresponds to the default values of [showCustomLoading]./// [BotToast.defaultOption.attached] corresponds to the default values of [showAttachedWidget]./// [BotToast.defaultOption.animation] corresponds to the default values of [showAnimationWidget]./// [BotToast.defaultOption.enhanced] corresponds to the default values of [showEnhancedWidget].
3.0 version
Major changes:
Reimplemented the underlying initialization logic, the code is simpler and more general, and no longer depends on Navigator