close method

  1. @override
Future<void> close()
override

Closes this database connection and releases all resources associated with it. Implementations should also handle close calls in a state where the database isn't open.

Implementation

@override
Future<void> close() {
  if (_delegateAvailable) {
    return _delegate.close();
  } else {
    return Future.value();
  }
}