TrackerData class

A data container for individual tracker segments.

TrackerData encapsulates the information needed to display a single segment within a Tracker widget. Each segment represents a data point with an associated status level and contextual information.

Components

  • Tooltip: Interactive content displayed on hover for additional context
  • Level: Status level determining the visual appearance and meaning

Usage

Tracker data is typically created from application data models and transformed into visual representations for status monitoring dashboards, progress indicators, or health monitoring interfaces.

Example:

TrackerData(
  level: TrackerLevel.warning,
  tooltip: Column(
    mainAxisSize: MainAxisSize.min,
    children: [
      Text('Server Load'),
      Text('75% - Warning Level'),
      Text('Last Updated: 2 min ago'),
    ],
  ),
);

Constructors

TrackerData.new({required Widget tooltip, required TrackerLevel level})
Creates a new TrackerData instance.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
level TrackerLevel
The status level determining visual appearance.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tooltip Widget
The tooltip content displayed on hover.
final

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