InjectionResult constructor

InjectionResult({
  1. required String documentId,
  2. required int frameId,
  3. Object? result,
  4. String? error,
})

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,
      );