close method

void close([
  1. String? action
])

action indicates why it was closed.

Implementation

void close([String? action]) => js.close();