updateWithLinkParams method
void
updateWithLinkParams({})
override
Updates content
, params and paramTypeMap
according to the new linked parameters
Implementation
@override
void updateWithLinkParams({
required Map<String, Set<String>> linkParamMap,
required Map<String, String> paramTypeMap,
}) {
this._paramTypeMap.addAll(paramTypeMap);
this._params.addAll(linkParamMap.values.expand((e) => e));
// build a temporary TextNode to get the updated content
final temp = RichTextNode(
path: path,
raw: raw,
comment: comment,
interpolation: interpolation,
paramCase: paramCase,
linkParamMap: linkParamMap,
);
this._spans = temp.spans;
}