createLoading static method

ToastMessageBar createLoading({
  1. required String message,
  2. required LinearProgressIndicator linearProgressIndicator,
  3. String? title,
  4. Duration duration = const Duration(seconds: 3),
  5. AnimationController? progressIndicatorController,
  6. 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,
  );
}