Cell class
Represents a single cell in a 9x9 grid
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
-
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- isPristine ↔ bool?
-
Whether or not this cell's value has been changed since grid generation
getter/setter pairinherited
- position → Position?
-
Position of this cell in a 9x9 grid
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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 nonexistent 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