RunnableWithFallback<RunInput extends Object?, RunOutput extends Object?> constructor

RunnableWithFallback<RunInput extends Object?, RunOutput extends Object?>({
  1. required Runnable<RunInput, RunnableOptions, RunOutput> mainRunnable,
  2. required List<Runnable<RunInput, RunnableOptions, RunOutput>> fallbacks,
})

Implementation

RunnableWithFallback({
  required this.mainRunnable,
  required this.fallbacks,
}) : super(defaultOptions: const RunnableOptions());