copyWith method

LiteralNode copyWith({
  1. dynamic value,
  2. String? raw,
  3. String? type,
  4. Location? loc,
})

Implementation

LiteralNode copyWith({
  dynamic value,
  String? raw,
  String? type,
  Location? loc,
}) {
  return LiteralNode(
    value ?? this.value,
    raw ?? this.raw,
    type: type ?? this.type,
    loc: loc ?? this.loc,
  );
}