MainLoop class final

Creates a main loop, which describes the whole content of an experiment.

Example

Note: this code is only for demonstration and will not run properly!

Trial trial1, trial2;
Loop loop1, loop2;

final mainLoop = MainLoop(
  children: [trial1, loop1, trial2, loop2],
);
Inheritance

Constructors

MainLoop({required List<TrialOrLoop> children})
Creates a main loop with the given children.

Properties

hashCode int
The hash code for this object.
no setterinherited
repeat bool Function(Fluffy fluffy)
Repeats the current node if the return value is true
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
skip bool Function(Fluffy fluffy)
Skips the current node if the return value is true
getter/setter pairinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited