close method

Future<void> close()

Closes database instance.

Implementation

Future<void> close() {
  if (_handle == null) {
    throw StateError('Closed');
  }
  return _mc.invokeMethod('close', [_handle]).catchError(_errorHandler());
}