DriftServer constructor Null safety

DriftServer(
  1. DatabaseConnection connection,
  2. {bool allowRemoteShutdown = false}
)

Creates a drift server proxying incoming requests to the underlying connection.

If allowRemoteShutdown is set to true (it defaults to false), clients can use shutdown to stop this server remotely.

Implementation

factory DriftServer(DatabaseConnection connection,
    {bool allowRemoteShutdown = false}) {
  return ServerImplementation(connection, allowRemoteShutdown);
}