menu
chrome_extension package
documentation
extension.dart
OnRequestEvent class
OnRequestEvent class
dark_mode
light_mode
OnRequestEvent
class
Constructors
OnRequestEvent
({
required
Object
?
request
,
required
MessageSender
sender
,
required
JSFunction
sendResponse
})
Properties
hashCode
→
int
The hash code for this object.
no setter
inherited
request
→
Object
?
The request sent by the calling script.
final
runtimeType
→
Type
A representation of the runtime type of the object.
no setter
inherited
sender
→
MessageSender
final
sendResponse
→
JSFunction
Function to call (at most once) when you have a response. The argument should be any JSON-ifiable object, or undefined if there is no response. If you have more than one
onRequest
listener in the same document, then only one may send a response.
final
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
chrome_extension package
documentation
extension
OnRequestEvent class
extension library