createLoading static method

Flushbar 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 Flushbar createLoading(
    {required String message,
    required LinearProgressIndicator linearProgressIndicator,
    String? title,
    Duration duration = const Duration(seconds: 3),
    AnimationController? progressIndicatorController,
    Color? progressIndicatorBackgroundColor}) {
  return Flushbar(
    title: title,
    message: message,
    icon: Icon(
      Icons.cloud_upload,
      color: Colors.blue[300],
    ),
    duration: duration,
    showProgressIndicator: true,
    progressIndicatorController: progressIndicatorController,
    progressIndicatorBackgroundColor: progressIndicatorBackgroundColor,
  );
}