Skip to content

ContinuousVisualTrackingActivityBody

The ContinuousVisualTrackingActivityBody class defines the UI for the continuous visual tracking task.

Inheritance

Constructors

ContinuousVisualTrackingActivityBody

const ContinuousVisualTrackingActivityBody({
  1. Key? key,
  2. required RPUIContinuousVisualTrackingActivityBody topLevelWidget,
  3. required int numberOfTests,
  4. required int amountOfDots,
  5. required int amountOfTargets,
  6. required int dotSize,
  7. required Duration trackingSpeed,
})

the continuousVisualTrackingActivityBody constructor

Properties

amountOfDots

int amountOfDots
final

the number of dots to display

amountOfTargets

int amountOfTargets
final

dotSize

int dotSize
final

the size of the dots to display

numberOfTests

int numberOfTests
final

the number of tests to run

topLevelWidget

property to pass on the top level widget

trackingSpeed

Duration trackingSpeed
final

the speed of the dots in milliseconds

Methods

createState

Creates the mutable state for this widget at a given location in the tree.

Subclasses should override this method to return a newly created instance of their associated State subclass:

@override
State<SomeWidget> createState() => _SomeWidgetState();

The framework can call this method multiple times over the lifetime of a StatefulWidget. For example, if the widget is inserted into the tree in multiple locations, the framework will create a separate State object for each location. Similarly, if the widget is removed from the tree and later inserted into the tree again, the framework will call createState again to create a fresh State object, simplifying the lifecycle of State objects.