JxRuleRegistry class final

Registre central conservant et interrogeant les règles CSS utilitaires enregistrées.

Constructors

JxRuleRegistry()
JxRuleRegistry.withPreset([JxPreset preset = const JxDefaultPreset()])
Crée un registre pré-rempli avec le preset fourni (par défaut JxDefaultPreset).
factory

Properties

allRules → List<JxRuleContract>
Liste de toutes les règles enregistrées.
no setter
count → int
Nombre total de règles enregistrées.
no setter
hashCode → int
The hash code for this object.
no setterinherited
identifiers → Set<String>
Identifiants de classe reconnus par les règles enregistrées (p, flex, bg…), utilisés pour suggérer une correction.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
Réinitialise l'ensemble des règles enregistrées.
findAllMatchingRules(JxClassToken token) → List<JxRuleContract>
Retourne toutes les règles correspondant au token.
findMatchingRule(JxClassToken token) → JxRuleContract?
Recherche la première règle qui prend en charge le token donné.
getById(String id) → JxRuleContract?
Récupère une règle par son identifiant.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register(JxRuleContract rule) → void
Enregistre une nouvelle règle. Remplace toute règle existante avec le même id.
registerAll(Iterable<JxRuleContract> rules) → void
Enregistre une collection de règles.
registerPreset(JxPreset preset) → void
Enregistre toutes les règles d'un preset.
toString() → String
A string representation of this object.
inherited
unregister(String id) → bool
Supprime une règle par son identifiant.

Operators

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