ApiEndpoint class

An endpoint to relate an id to a function handler.

Constructors

ApiEndpoint({required int id, void handler(Socket socket, Uint8List data)?})
Create a new ApiEndpoint given an id and an optional handler.

Properties

handler → void Function(Socket socket, Uint8List data)?
A function handler given a client Socket and data as a Uint8List.
final
hashCode int
The hash code for this object.
no setterinherited
id int
A unique identifier.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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