TournamentDrawEngine class
Helper utility for organizing tournament brackets, seeding, and drawing.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
buildInitialBracket<
P> ({required List< P> players, List<P> ? seeds, String matchLabelPrefix = 'M', String getPlayerName(P)?, bool includeFinal = true}) → List<List< MatchModel< >P> > - Automatically generates the complete tournament round tree (List of Match Lists) starting from a raw list of players/competitors.
-
calculateByes(
int N) → int - Calculates the number of BYE (miễn đấu) slots required for N players.
-
generateSeedingOrder(
int size) → List< int> - Generates the standard tournament bracket seeding position order for a given power-of-2 size.
-
nextPowerOfTwo(
int N) → int - Finds the next power of 2 greater than or equal to N.