warning static method
void
warning(
- 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 warning toastr with the given message
Implementation
static void warning(
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.warning,
message: message,
title: title,
duration: duration,
position: position,
showMethod: showMethod,
hideMethod: hideMethod,
showDuration: showDuration,
hideDuration: hideDuration,
showProgressBar: showProgressBar,
showCloseButton: showCloseButton,
preventDuplicates: preventDuplicates,
),
context,
);
}