rerender method Null safety

void rerender(
  1. ReactElement ui
)

Updates the props of the renderedElement by providing an updated ui element.

See: testing-library.com/docs/react-testing-library/api/#rerender

Implementation

void rerender(ReactElement ui) {
  _renderedElement = ui;
  _jsRenderResult.rerender(ui);
}