Settings class

The settings of a Firestore Lite instance: where the backend is.

There is nothing about a cache: Firestore Lite has none.

Constructors

Settings({String host = defaultHost, int port = defaultPort, bool sslEnabled = true, int grpcFlowControlWindow = defaultGrpcFlowControlWindow})
Settings for the backend at host:port. The defaults are those of the production service.

Properties

grpcFlowControlWindow → int
The HTTP/2 flow-control window of the gRPC transport, in bytes. An advanced setting, see the grpcFlowControlWindow of the settings of the main library. Ignored by the web transport.
no setter
hashCode → int
The hash code for this object.
no setteroverride
host → String
The host of the Firestore backend.
no setter
mockUserToken → Object?
The token sent as the credentials of every request to the emulator: a token string, or the claims of a Firebase ID token as a map. Null unless set with withEmulator.
no setter
port → int
The port of the Firestore backend.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sslEnabled → bool
Whether the connection uses TLS.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override
withEmulator(String host, int port, {Object? mockUserToken}) → Settings
Returns settings for the Firestore emulator at host:port (without TLS).

Operators

operator ==(Object other) → bool
The equality operator.
override

Constants

defaultGrpcFlowControlWindow → const int
The default of grpcFlowControlWindow, 256 KiB.
defaultHost → const String
The host of the production service.
defaultPort → const int
The port of the production service.