replaceElement method

void replaceElement(
  1. String selector,
  2. String html
)

Send an element replacement

Implementation

void replaceElement(String selector, String html) {
  final changes = [
    {
      'action': 'replace_element',
      'selector': selector,
      'html': html,
    }
  ];
  sendInstantUIUpdate(changes);
}