Rank class

Main class, import this for using the methods of this plugin

Constructors

Rank()

Properties

alphabet String
The range of values that must be use to generate the rank.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
wildcard String
Possible ranking values (Range)
getter/setter pair

Methods

generate({String previous = '', String next = ''}) String
Generate a rank based at their neighbors, the previous element and next element.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
orderByLength({required String one, required String two}) List<String>
Compare two strings by your length and return a list with the bigger at the first place and shorter at the second place.
prefix(String previousRank, String nextRank) ResultPrefix
Return a string between previousRank and nextRank as a condition, both params must be of the same length
splitByShorter({required String bigger, required String shorter}) List<String>
Split the larger element, so that it fits in length to the shorter element, returns a list with the bigger element cut, the shorter element and if it exists, the first residue char of the bigger.
suffix(String previousRank, String nextRank) String
It creates the part of the ranking when one of the neighbors is bigger than the other, i.e. at least one of the two parameters (previousRank or nextRank) will always be empty, when it contains a wildcard, it has to preserve it.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited