next method
Returns the next piece from the bag.
Implementation
TetrominoType next() {
if (_bag.isEmpty) _refill();
return _bag.removeAt(0);
}
Returns the next piece from the bag.
TetrominoType next() {
if (_bag.isEmpty) _refill();
return _bag.removeAt(0);
}