MainLoop constructor
MainLoop({
- required List<
TrialOrLoop> children,
Creates a main loop with the given children
.
It is important that children
here should not contain MainLoop
objects or be empty. On such occasions, an ArgumentError will be thrown.
The children
argument, after being passed to the constructor, is then
deep-copied to a private field. Any changes made afterwards to the original
children will thus make no difference to the preserved copy in the MainLoop.
In this sense, the components of a main loop will remain immutable.
Implementation
MainLoop({required super.children}) : super();