SquadronMethod class

Annotation for service methods to be exposed by workers.

Constructors

SquadronMethod({bool inspectRequest = false, bool inspectResponse = false})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
inspectRequest bool
Indicates whether the contents of the incoming message should be inspected by Squadron before sending the request to the worker. By default, incoming messages are not inspected except for the startup message. The purpose of message inspection is to detect non-base-type data that require transfer of ownership to the target worker. E.g. if the request data include a Channel object, inspectRequest must be set to true.
final
inspectResponse bool
Same as inspectRequest but for outgoing messages (response produced by the worker).
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