Toast component written in AngularDart. Provides clear and easy to use notifying system.
-
Create a new ToastManagerComponent in your class in this way:
ToastManagerComponent _toastManager; ToastinoExampleComponent(ComponentLoader toastComponentLoader, ViewContainerRef viewContainerRef){ _toastManager = new ToastManagerComponent(toastComponentLoader, viewContainerRef); }
-
Call ToastManager's newToast method to create a new toast.
_toastManager.newToast(title, callback);
- toast_manager_component - The core of Toastino: it keeps trace of every toast created and manages their positioning and removal.