AlphabeticalRule class

A property source ordering rule that sorts sources alphabetically by name.

This rule can be applied to a list of PropertySource instances to produce a predictable, lexicographical ordering based on each source's name.

Example

final rule = AlphabeticalRule();
final reordered = rule.apply(sourcesList);

In this example, all property sources in sourcesList will be reordered alphabetically by their names, regardless of their original positions.

Implemented types

Constructors

AlphabeticalRule()
A property source ordering rule that sorts sources alphabetically by name.
const

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

apply(List<PropertySource> sources) → List<PropertySource>
Applies this ordering rule to the provided list of `PropertySource`s.
override
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