configure static method
void
configure({
- ToastrPosition? position,
- Duration? duration,
- Duration? showDuration,
- Duration? hideDuration,
- ToastrShowMethod? showMethod,
- ToastrHideMethod? hideMethod,
- bool? showProgressBar,
- bool? showCloseButton,
- bool? preventDuplicates,
Configure global defaults for all toastrs
Implementation
static void configure({
ToastrPosition? position,
Duration? duration,
Duration? showDuration,
Duration? hideDuration,
ToastrShowMethod? showMethod,
ToastrHideMethod? hideMethod,
bool? showProgressBar,
bool? showCloseButton,
bool? preventDuplicates,
}) {
defaultConfig = defaultConfig.copyWith(
position: position,
duration: duration,
showDuration: showDuration,
hideDuration: hideDuration,
showMethod: showMethod,
hideMethod: hideMethod,
showProgressBar: showProgressBar,
showCloseButton: showCloseButton,
preventDuplicates: preventDuplicates,
);
}