transform hook

This commit is contained in:
thosakwe 2017-03-11 02:13:57 -05:00
parent 44683b8a34
commit 12587bb5a0

View file

@ -47,6 +47,10 @@ HookedServiceEventListener toJson() {
};
}
/// Mutates `e.data` or `e.result` using the given [transformer].
HookedServiceEventListener transform(transformer(obj)) {
}
/// Transforms `e.data` or `e.result` into an instance of the given [type],
/// if it is not already.
HookedServiceEventListener toType(Type type) {