BloomDiscoveredServer class

Represents a Bloom dev server discovered on the local area network.

Contains connection details, version information, and last seen timestamp.

Example:

final server = BloomDiscoveredServer(host: '192.168.1.5', port: 8080);
print('Discovered dev server at: ${server.uri}');

Constructors

BloomDiscoveredServer({String? name, String? host, String? ip, int? port, String? version, String? projectId, String? projectName, String? appName, String? uri, DateTime? lastSeen, DateTime? discoveredAt})
Creates a BloomDiscoveredServer descriptor.
BloomDiscoveredServer.fromJson(Map<String, dynamic> json, {String? defaultHost})
Constructs a BloomDiscoveredServer from a JSON map.
factory

Properties

appName String
Application title / name.
final
discoveredAt DateTime
Timestamp alias for lastSeen.
no setter
endpoint String
Endpoint alias for uri.
no setter
hashCode int
The hash code for this object.
no setterinherited
host String
Hostname or IP address of the server.
final
ip String
IP address alias for host.
no setter
lastSeen DateTime
Timestamp when the server was last seen via UDP broadcast.
final
name String
Server display name.
final
port int
Port number the dev server is listening on.
final
projectId String
Unique project ID.
final
projectName String
Project name alias for projectId.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uri String
HTTP URI string for this server.
no setter
version String
Version string of the running project.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes server descriptor to JSON map.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited