Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

[web] Remove unused allowInterop usage in flutter web code #50718

Merged
merged 1 commit into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions lib/web_ui/lib/src/engine/dom.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3041,8 +3041,7 @@ extension DomScreenOrientationExtension on DomScreenOrientation {

// A helper class for managing a subscription. On construction it will add an
// event listener of the requested type to the target. Calling [cancel] will
// remove the listener. Caller is still responsible for calling [allowInterop]
// on the listener before creating the subscription.
// remove the listener.
class DomSubscription {
DomSubscription(
this.target, String typeString, DartDomEventListener dartListener)
Expand Down Expand Up @@ -3268,9 +3267,6 @@ abstract class DomTrustedTypePolicyOptions {
///
/// `createScriptURL` is a callback function that contains code to run when
/// creating a TrustedScriptURL object.
///
/// The following properties need to be manually wrapped in [allowInterop]
/// before being passed to this constructor: [createScriptURL].
external factory DomTrustedTypePolicyOptions({
JSFunction? createScriptURL,
});
Expand Down
3 changes: 0 additions & 3 deletions lib/web_ui/lib/src/engine/safe_browser_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ import 'display.dart';
import 'dom.dart';
import 'vector_math.dart';

export 'package:js/js_util.dart' show allowInterop;


/// Returns true if [object] has property [name], false otherwise.
///
/// This is equivalent to writing `name in object` in plain JavaScript.
Expand Down