connect method Null safety

Future<DatabaseConnection> connect(
  1. {bool isolateDebugLog = false}
)

Connects to this DriftIsolate from another isolate.

All operations on the returned DatabaseConnection will be executed on a background isolate. Setting the isolateDebugLog is only helpful when debugging drift itself.

Implementation

// todo: breaking: Make synchronous in drift 5
Future<DatabaseConnection> connect({bool isolateDebugLog = false}) async {
  return remote(_open(), debugLog: isolateDebugLog);
}