withSpinner<T> static method

Future<T> withSpinner<T>(
  1. String message,
  2. Future<T> action(), {
  3. String? doneMessage,
  4. String? failedMessage,
  5. String? icon,
  6. bool isSuccess(
    1. T result
    )?,
})

Implementation

static Future<T> withSpinner<T>(
  String message,
  Future<T> Function() action, {
  String? doneMessage,
  String? failedMessage,
  String? icon,
  bool Function(T result)? isSuccess,
}) =>
    SpinnerPrompt.withSpinner(
      message,
      action,
      doneMessage: doneMessage,
      failedMessage: failedMessage,
      icon: icon,
      isSuccess: isSuccess,
    );