success static method
void
success(
- BuildContext context,
- String message, {
- String? title,
- Duration? duration,
- ToastrPosition? position,
- ToastrShowMethod? showMethod,
- ToastrHideMethod? hideMethod,
- Duration? showDuration,
- Duration? hideDuration,
- bool? showProgressBar,
- bool? showCloseButton,
- bool? preventDuplicates,
Show a success toastr with the given message
Implementation
static void success(
BuildContext context,
String message, {
String? title,
Duration? duration,
ToastrPosition? position,
ToastrShowMethod? showMethod,
ToastrHideMethod? hideMethod,
Duration? showDuration,
Duration? hideDuration,
bool? showProgressBar,
bool? showCloseButton,
bool? preventDuplicates,
}) {
_service.show(
defaultConfig.copyWith(
type: ToastrType.success,
message: message,
title: title,
duration: duration,
position: position,
showMethod: showMethod,
hideMethod: hideMethod,
showDuration: showDuration,
hideDuration: hideDuration,
showProgressBar: showProgressBar,
showCloseButton: showCloseButton,
preventDuplicates: preventDuplicates,
),
context,
);
}