get method
Get a toast widget factory by id.
Returns the "success" factory with a debug warning if id is not found.
Implementation
ToastStyleFactory? get(String id) {
if (_styles.containsKey(id)) {
return _styles[id];
}
if (kDebugMode) {
debugPrint(
'ToastNotificationRegistry: Style "$id" not found. Falling back to "success".',
);
}
return _styles['success'];
}