from static method
RunnableSequence<Object?, Object?>
from(
- List<
Runnable< runnablesObject?, RunnableOptions, Object?> >
Creates a RunnableSequence from a list of Runnables.
runnables
- the Runnables to create the RunnableSequence from.
Implementation
static RunnableSequence from(final List<Runnable> runnables) {
return RunnableSequence(
first: runnables.first,
middle: runnables.sublist(1, runnables.length - 1),
last: runnables.last,
);
}