closed property

Future<void> get closed

A future that resolves when the database is closed.

Typically, databases are closed because dispose is called. For databases opened with WebSqlite.connectToPort however, it's possible that the original worker hosting the database gets closed without this Database instance being explicitly disposed. In those cases, monitoring closed is useful to react to databases closing.

Implementation

Future<void> get closed;