AdHocType enum Null safety

Enum defining the type of events

Inheritance

Constructors

AdHocType()
const

Values

onDeviceDiscovered → const AdHocType

Device discovered (either Wi-Fi or Bluetooth enabled)

const AdHocType(0)
onDiscoveryStarted → const AdHocType

Start discovery process of peers

const AdHocType(1)
onDiscoveryCompleted → const AdHocType

End of discovery process

const AdHocType(2)
onDataReceived → const AdHocType

Data received from peers

const AdHocType(3)
onForwardData → const AdHocType

Data to be forward to peers

const AdHocType(4)
onConnection → const AdHocType

Successful connection to a peer

const AdHocType(5)
onConnectionClosed → const AdHocType

Connection aborted

const AdHocType(6)
onInternalException → const AdHocType

Exception raised in lower layer of the library

const AdHocType(7)
onGroupInfo → const AdHocType

Update on the secure group

const AdHocType(8)
onGroupDataReceived → const AdHocType

Data received from a group member

const AdHocType(9)

Properties

hashCode int
The hash code for this object.
read-only, inherited
index int
A numeric identifier for the enumerated value.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

values → const List<AdHocType>
A constant List of the values in this enum, in order of their declaration.
[onDeviceDiscovered, onDiscoveryStarted, onDiscoveryCompleted, onDataReceived, onForwardData, onConnection, onConnectionClosed, onInternalException, onGroupInfo, onGroupDataReceived]