copyWith method

ReferenceResolver copyWith({
  1. String? style,
})

Implementation

ReferenceResolver copyWith({String? style}) {
  final String myStyle = style ?? "default";
  assert(myStyle == "default" || myStyle == "emphasis");
  return ReferenceResolver(
    hostConfig: hostConfig,
    currentStyle: myStyle,
  );
}