Indicators class

A class that defines the visual indicators used in CLI selection interfaces.

This class allows customization of the appearance of selection indicators in interactive command-line prompts, providing different symbols for various selection states:

Each indicator uses ANSI escape sequences for colored output in terminal environments that support it.

Example usage:

final customIndicators = Indicators(
  selectedIndicator: '\x1B[36m▶\x1B[0m',
  defaultIndicator: '\x1B[90m◆\x1B[0m',
);

Constructors

Indicators({String confirmedIndicator = '\x1B[32m☑\x1B[0m', String defaultIndicator = '\x1B[35m○\x1B[0m', String selectedConfirmedIndicator = '\x1B[38;5;214m☑\x1B[0m', String selectedIndicator = '\x1B[38;5;214m●\x1B[0m'})
Creates an Indicators instance with customizable selection symbols.
const

Properties

confirmedIndicator String
The indicator for items that have been confirmed/selected. Default is a green checkmark.
final
defaultIndicator String
The indicator for non-selected items. Default is a purple empty circle.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedConfirmedIndicator String
The indicator for items that are both currently selected and confirmed. Default is an orange checkmark.
final
selectedIndicator String
The indicator for the currently highlighted/selected item. Default is an orange filled circle.
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