JxCssRule class final
Représentation immuable d'une règle CSS complète (sélecteur et déclarations).
Constructors
Properties
-
declarations
→ List<
JxCssDeclaration> -
Liste des déclarations CSS formant le corps de la règle.
final
- fullSelector → String
-
Sélecteur complet tel qu'il doit être écrit dans la feuille de style
(sélecteur de base suivi de la pseudo-classe éventuelle).
no setter
- hasDeclarations → bool
-
Indique si la règle possède des déclarations.
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- hasMediaQuery → bool
-
Indique si la règle est conditionnée par une media query.
no setter
- hasPseudoSelector → bool
-
Indique si la règle porte une pseudo-classe ou un pseudo-élément.
no setter
- mediaQuery → String?
-
Requête média optionnelle enveloppant cette règle (ex.
@media (min-width: 768px)).final - pseudoSelector → String?
-
Pseudo-classe ou pseudo-élément optionnel (ex.
:hover,::after).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selector → String
-
Sélecteur CSS cible (ex.
.c-red,.hover\:bg-blue:hover).final - selectorPrefix → String?
-
Préfixe optionnel placé avant le sélecteur, combinateur inclus
(ex.
.group:hoverou.peer:checked ~).final
Methods
-
copyWith(
{String? selector, List< JxCssDeclaration> ? declarations, String? mediaQuery, String? pseudoSelector, String? selectorPrefix}) → JxCssRule - Copie la règle en surchargeant les champs spécifiés.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override