NPinController constructor

NPinController({
  1. dynamic shuffle = false,
  2. dynamic length = 6,
})
  • shuffle Disorder the buttons but keep the actions in their position.
  • length number of inputs

Implementation

NPinController({shuffle = false, length = 6}) :
assert( length > 3,  Exception('Length must be > 3' ) ),
assert( length < 10, Exception('Length must be < 12') )
{
  _shuffle  = shuffle;
  _length   = length;
  _fillList();
  _buildBoard();
}