createLoading static method
ToastMessageBar
createLoading({
- required String message,
- required LinearProgressIndicator linearProgressIndicator,
- String? title,
- Duration duration = const Duration(seconds: 3),
- AnimationController? progressIndicatorController,
- Color? progressIndicatorBackgroundColor,
Implementation
static ToastMessageBar createLoading(
{required String message,
required LinearProgressIndicator linearProgressIndicator,
String? title,
Duration duration = const Duration(seconds: 3),
AnimationController? progressIndicatorController,
Color? progressIndicatorBackgroundColor}) {
return ToastMessageBar(
title: title,
message: message,
icon: Icon(
Icons.cloud_upload,
color: Colors.blue[300],
),
duration: duration,
showProgressIndicator: true,
progressIndicatorController: progressIndicatorController,
progressIndicatorBackgroundColor: progressIndicatorBackgroundColor,
);
}