System for tracking and responding to terminal window size changes.
This module provides platform-specific implementations for monitoring terminal dimensions, enabling responsive UI updates when the terminal is resized.
- Implementers
Constructors
- TerminalSizeTracker.agnostic({required Duration pollingInterval})
-
Creates a platform-appropriate size tracker.
factory
Properties
- currentSize → Size
-
Current dimensions of the terminal window
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- listener ↔ void Function()?
-
Callback triggered when terminal size changes
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
startTracking(
) → void - Begins monitoring terminal size changes
-
stopTracking(
) → void - Stops monitoring terminal size changes
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited