HintTooltipLabels class

Button + announcement strings for the zero-config tooltip.

The default tooltip never hard-codes a language: it renders HintTheme.tooltipLabels (English by default). A product localizes once, in its design system — no per-screen tooltip duplication:

ThemeData(
  extensions: [
    HintTheme.minimal(scheme).copyWith(
      tooltipLabels: const HintTooltipLabels(
        skip: 'Пропустить',
        back: 'Назад',
        next: 'Далее',
        done: 'Готово',
        preparing: 'Подготовка…',
        announceStep: _announceRu, // "Шаг 1 из 3: …"
      ),
    ),
  ],
);
Annotations

Constructors

HintTooltipLabels({String skip = 'Skip', String back = 'Back', String next = 'Next', String done = 'Done', String preparing = 'Preparing…', String announceStep(int stepIndex, int totalSteps, String title)?})
const

Properties

announceStep String Function(int stepIndex, int totalSteps, String title)?
Screen-reader announcement per step; null — "Step N of M: <title>". Gets the 0-based stepIndex, total count and resolved title (targetId when the step has none).
final
back String
final
done String
final
hashCode int
The hash code for this object.
no setteroverride
next String
final
preparing String
Waiting-phase placeholder ("the target is not mounted yet").
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
skip String
Action buttons of the primary tooltip.
final

Methods

announce({required int stepIndex, required int totalSteps, required String title}) String
Announcement for a step via announceStep or the English default.
copyWith({String? skip, String? back, String? next, String? done, String? preparing, String announceStep(int stepIndex, int totalSteps, String title)?}) HintTooltipLabels
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.
override