Cell class final

A buffer cell which can be styled and contain a single character.

Annotations

Constructors

Cell([String symbol = ' ', Style style = Style.reset])
Creates a new cell with the given symbol and optional style.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style Style
Style of the cell.
final
symbol String
A 1-width string representing the cell's content.
final

Methods

copyWith({String? symbol, Style? style}) Cell
Returns a copy of this cell with the given symbol and style.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Constants

empty → const Cell
A cell with an ' ' symbol and an inherited style.