ConnectionResult class final

Constructors

ConnectionResult({required bool state, required String response, BluetoothDevice? device})
ConnectionResult.fromMap(Map<String, dynamic> map)
factory

Properties

device BluetoothDevice?
This is the bluetooth device that we get when we have a successful connection. If our bluetooth connection wasn't successful, then null will be returned
final
hashCode int
The hash code for this object.
no setteroverride
response String
This contains the response message from a connection. It tells you whether your connection was successful or a failure, in which case will tell you where the failure occurred
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state bool
This boolean tells us whether the connection was successful or not
final

Methods

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

Operators

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