INNER CODE UNIT · Dart
Toastification
payam-zahedi/toastification · lib/src/core/toastification.dart:78
class Toastification {
static final Toastification _instance = Toastification._internal();
/// Private constructor for the singleton class
Toastification._internal();
/// returns the singleton instance of the class
factory Toastification() => _instance;
/// list of managers for each [Alignment] object
///
/// for each [Alignment] object we will create a [ToastificationManager]
@visibleForTesting
final Map<Alignment, ToastificationManager> managers = {};
/// shows a custom notification
///
/// you should create your own widget and pass it to the [builder] parameter