ProvisionResult class

Result of a device provisioning operation

Constructors

ProvisionResult({required bool success, int? assignedAddress, String? error, int? durationMs})
const
ProvisionResult.failure({required String error, int? durationMs})
Create a failed result
factory
ProvisionResult.fromMap(Map<String, dynamic> map)
Create from map received from platform channel
factory
ProvisionResult.success({required int assignedAddress, int? durationMs})
Create a successful result
factory

Properties

assignedAddress int?
Unicast address assigned to the device (if successful)
final
durationMs int?
Time taken for provisioning in milliseconds
final
error String?
Error message (if failed)
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
success bool
Whether the provisioning was successful
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Convert to map for platform channel communication
toString() String
A string representation of this object.
override

Operators

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