LexoRank constructor

const LexoRank({
  1. int alphabetSize = 26,
  2. bool reorderPosition = false,
})

Create a LexoRank instance that can be used to generate rank using specified alphabetSize

The reorderPosition indicate that when generating rank, the first rank should be lower rank or based on the rank decide to become the lower.

Note: for now, only english alphabet supported

Implementation

const LexoRank({
  this.alphabetSize = 26,
  this.reorderPosition = false,
});