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?
getter/setter pair
eventName String
no setter
hashCode int
The hash code for this object.
no setterinherited
id → Id?
no setter
isAfter bool
no setter
isBefore bool
no setter
params Map?
no setter
request RequestContext?
no setter
response ResponseContext?
no setter
result ↔ dynamic
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
service ↔ T
The inner service whose method was hooked.
getter/setter pair

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 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

Constants

all → const List<String>
created → const String
indexed → const String
modified → const String
read → const String
removed → const String
updated → const String