copyWith method

JxCssRule copyWith({
  1. String? selector,
  2. List<JxCssDeclaration>? declarations,
  3. String? mediaQuery,
  4. String? pseudoSelector,
  5. String? selectorPrefix,
})

Copie la règle en surchargeant les champs spécifiés.

Implementation

JxCssRule copyWith({
  String? selector,
  List<JxCssDeclaration>? declarations,
  String? mediaQuery,
  String? pseudoSelector,
  String? selectorPrefix,
}) {
  return JxCssRule(
    selector: selector ?? this.selector,
    declarations: declarations ?? this.declarations,
    mediaQuery: mediaQuery ?? this.mediaQuery,
    pseudoSelector: pseudoSelector ?? this.pseudoSelector,
    selectorPrefix: selectorPrefix ?? this.selectorPrefix,
  );
}