JxThemeData class final

Structure de stockage regroupant l'ensemble des tokens d'un thème.

Constructors

JxThemeData([Map<String, Map<String, JxTokenValue>>? categories])
JxThemeData.fromMap(Map<String, Map<String, String>> raw)
Construit les données de thème à partir d'une table brute catégorie -> (clé -> valeur).
factory

Properties

categories → Iterable<String>
Retourne toutes les catégories de tokens enregistrées.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getAllTokens() → List<JxTokenValue>
Retourne la liste de tous les tokens du thème.
getCategory(String category) → Map<String, String>
Retourne les paires clé -> valeur d'une catégorie, dans l'ordre d'insertion (vide si la catégorie n'existe pas).
getToken(String category, String key) → JxTokenValue?
Récupère un token spécifique dans une catégorie.
getValue(String category, String key) → String?
Récupère la valeur d'un token ou null s'il n'existe pas.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setToken(JxTokenValue token) → void
Ajoute ou remplace un token dans le thème.
toString() → String
A string representation of this object.
inherited

Operators

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