HookedServiceEvent<Id, Data, T extends Service<Id, Data>> class

Fired when a hooked service is invoked.

Constructors

HookedServiceEvent(bool _isAfter, RequestContext _request, ResponseContext _response, T service, String _eventName, {Id id, Data data, Map<String, dynamic> params, dynamic result})

Properties

data ↔ Data
read / write
eventName → String
read-only
id → Id
read-only
isAfter → bool
read-only
isBefore → bool
read-only
params → Map
read-only
request RequestContext
read-only
response ResponseContext
read-only
result ↔ dynamic
read / write
service ↔ T
The inner service whose method was hooked.
read / write
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

cancel([dynamic result]) → void
Use this to end processing of an event.
getService(Pattern path) Service
Resolves a service from the application. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited

Constants

all → const List<String>
const [indexed, read, created, modified, updated, removed]
created → const String
'created'
indexed → const String
'indexed'
modified → const String
'modified'
read → const String
'read'
removed → const String
'removed'
updated → const String
'updated'