Cell constructor

Cell(
  1. dynamic position, [
  2. int? _value = 0
])

Constructs new Cell at position with optional _value If value is provided, then cell is flagged as prefilled

Implementation

Cell(position, [this._value = 0]) : super(position, true) {
  _isPrefill = (_value != 0);
  _isValid = _isPrefill;

  _onChange = new StreamController.broadcast();
}