JxDynamicRule class final
Règle libre : un constructeur calcule les déclarations à partir de la
valeur. Sert aux utilitaires qui produisent plusieurs propriétés
différentes (filtres composables, clamp:3…).
identifiers liste les identifiants acceptés. Si standalone est vrai,
la classe s'utilise sans valeur (truncate), sinon avec (blur:4).
Constructors
-
JxDynamicRule(String id, {required Set<
String> identifiers, required JxDeclarationBuilder build, bool standalone = false, bool allowNegative = false}) -
const
Properties
- allowNegative → bool
-
Autorise les valeurs négatives.
final
- build → JxDeclarationBuilder
-
Constructeur des déclarations.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Identifiant unique de la règle (ex.
color,padding,display).finalinherited -
identifiers
→ Set<
String> -
Identifiants acceptés.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- standalone → bool
-
Indique si la règle s'applique aux classes sans valeur.
final
Methods
-
escapeSelector(
String rawClassName) → String -
Échappe les caractères spéciaux pour former un sélecteur de classe CSS valide.
inherited
-
generate(
JxClassToken token, JxThemeContract theme) → List< JxCssRule> -
Génère les règles CSS correspondantes au token en utilisant le thème fourni.
override
-
matches(
JxClassToken token) → bool -
Vérifie si la règle prend en charge le token donné.
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