copyWith method

JxClassToken copyWith({
  1. String? raw,
  2. String? identifier,
  3. String? value,
  4. List<String>? variants,
  5. bool? isImportant,
  6. bool? isNegative,
})

Copie le token en surchargeant les champs spécifiés.

Implementation

JxClassToken copyWith({
  String? raw,
  String? identifier,
  String? value,
  List<String>? variants,
  bool? isImportant,
  bool? isNegative,
}) {
  return JxClassToken(
    raw: raw ?? this.raw,
    identifier: identifier ?? this.identifier,
    value: value ?? this.value,
    variants: variants ?? this.variants,
    isImportant: isImportant ?? this.isImportant,
    isNegative: isNegative ?? this.isNegative,
  );
}