MbtilesServerConfig class

Configuration for LocalMbtilesServer.

Annotations

Constructors

MbtilesServerConfig({InternetAddress? host, int? port, bool debugResponses = false, MbtilesServerErrorCallback? onError, bool closeSourcesOnStop = true})
Creates server configuration.
MbtilesServerConfig.defaults()
Loopback-only configuration on defaultPort.
factory

Properties

closeSourcesOnStop → bool
Whether LocalMbtilesServer.stop closes registered tile sources.
final
debugResponses → bool
When true, HTTP error responses may include exception details.
final
hashCode → int
The hash code for this object.
no setteroverride
host → InternetAddress
Bind address. Defaults to loopback IPv4.
final
onError → MbtilesServerErrorCallback?
Optional error callback for logging or crash reporting.
final
port → int
TCP port. 0 requests an OS-assigned port when the server starts.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({InternetAddress? host, int? port, bool? debugResponses, MbtilesServerErrorCallback? onError, bool? closeSourcesOnStop}) → MbtilesServerConfig
Returns a copy with the given fields replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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

Static Properties

defaultHost → InternetAddress
Default bind address (loopback IPv4 — localhost only).
final

Constants

defaultPort → const int
Default localhost tile server port.