configure static method

void configure({
  1. ToastrPosition? position,
  2. Duration? duration,
  3. Duration? showDuration,
  4. Duration? hideDuration,
  5. ToastrShowMethod? showMethod,
  6. ToastrHideMethod? hideMethod,
  7. bool? showProgressBar,
  8. bool? showCloseButton,
  9. 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,
  );
}