copyWith method
Creates a copy with optionally updated colours.
Implementation
TomlViewerColors copyWith({
Color? value,
Color? type,
Color? symbol,
Color? nonRootKey,
Color? rootKey,
Color? tableKey,
Color? arrayIndex,
Color? arrayExpandable,
Color? errorHighlight,
Color? errorText,
Color? searchHighlight,
Color? lineNumber,
}) {
return TomlViewerColors(
value: value ?? this.value,
type: type ?? this.type,
symbol: symbol ?? this.symbol,
nonRootKey: nonRootKey ?? this.nonRootKey,
rootKey: rootKey ?? this.rootKey,
tableKey: tableKey ?? this.tableKey,
arrayIndex: arrayIndex ?? this.arrayIndex,
arrayExpandable: arrayExpandable ?? this.arrayExpandable,
errorHighlight: errorHighlight ?? this.errorHighlight,
errorText: errorText ?? this.errorText,
searchHighlight: searchHighlight ?? this.searchHighlight,
lineNumber: lineNumber ?? this.lineNumber,
);
}