unmount method Null safety

void unmount()

Unmounts the renderedElement.

This is automatically called in the tearDown of each test that calls render unnecessary unless you set autoTearDown to false.

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

Implementation

void unmount() => _jsRenderResult.unmount();