Cell class

Represents a single cell in a 9x9 grid

Inheritance

Constructors

Cell(dynamic position, [int _value = 0])
Constructs new Cell at position with optional _value If value is provided, then cell is flagged as prefilled
Cell.fromMap(Map<String, dynamic> json)
Serialization
factory

Properties

change Stream
read-only
hashCode int
The hash code for this object. [...]
read-only, override
isPristine bool
Whether or not this cell's value has been changed since grid generation
read / write, inherited
position Position
Position of this cell in a 9x9 grid
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addMarkup(int value) → void
addMarkupSet(HashSet<int> values) → void
clear() → void
Clears a cell as if it was never prefilled Used in grid generation to clear clues in forming patterns
clearMarkup() → void
getMarkup() HashSet<int>
getPosition() Position
override
getValue() int
markup() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
prefill() bool
pristine() bool
Getters and setters I can only make these comments so interesting and no more :l
override
removeLastMarkup() → void
removeMarkup(int value) → void
setPrefill(bool isPrefilled) → void
setPristine(bool pristine) → void
override
setValidity(bool isValid) → void
setValue(int value) → void
Sets value of cell while poking _onChange
toMap() Map<String, dynamic>
toString() String
A string representation of this object. [...]
inherited
valid() bool

Operators

operator ==(dynamic obj) bool
Equitable cells, determined by position
override