InjectionResult constructor
InjectionResult({})
Implementation
InjectionResult({
/// The document associated with the injection.
required String documentId,
/// The frame associated with the injection.
required int frameId,
/// The result of the script execution.
Object? result,
/// The error, if any. `error` and `result` are
/// mutually exclusive.
String? error,
}) : _wrapped = $js.InjectionResult(
documentId: documentId,
frameId: frameId,
result: result?.jsify(),
error: error,
);