LocalDiscoverySnapshot class

A snapshot of the discovery state at a point in time.

Constructors

LocalDiscoverySnapshot({required String sessionId, List<LocalDevice> devices = const <LocalDevice>[], List<LocalService> services = const <LocalService>[], DateTime? startedAt, DateTime? completedAt, Duration duration = Duration.zero})
const
LocalDiscoverySnapshot.fromJson(Map<String, Object?> json)
Creates a LocalDiscoverySnapshot from a JSON-compatible map.
factory

Properties

completedAt → DateTime?
When the discovery completed.
final
devices → List<LocalDevice>
The devices discovered in this snapshot.
final
duration → Duration
The duration of the discovery.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
services → List<LocalService>
The services discovered in this snapshot.
final
sessionId → String
The ID of the session that produced this snapshot.
final
startedAt → DateTime?
When the discovery started.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
Converts this snapshot to a JSON-compatible map.
toString() → String
A string representation of this object.
inherited

Operators

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