NotifyBundle class
NotifyBundle implements Notifiee by calling any of the functions set on it, and nop'ing if they are unset. This is the easy way to register for notifications.
- Implemented types
Constructors
Properties
- connectedF → void Function(Network, Conn)?
-
Function called when a connection opened
final
- disconnectedF → void Function(Network, Conn)?
-
Function called when a connection closed
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- listenCloseF → void Function(Network, MultiAddr)?
-
Function called when network stops listening on an addr
final
- listenF → void Function(Network, MultiAddr)?
-
Function called when network starts listening on an addr
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
connected(
Network network, Conn conn) → Future< void> -
Called when a connection opened
override
-
disconnected(
Network network, Conn conn) → Future< void> -
Called when a connection closed
override
-
listen(
Network network, MultiAddr addr) → void -
Called when network starts listening on an addr
override
-
listenClose(
Network network, MultiAddr addr) → void -
Called when network stops listening on an addr
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited