close method

Future<void> close()

Removes the callback from the window object.

Implementation

Future<void> close() async {
  _count = 0;
  web.window.onmessage = null;
}