Skip to content

deprecated hax #363

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
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
2 changes: 1 addition & 1 deletion web/lib/src/dom/accelerometer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Generated from Web IDL definitions.

// ignore_for_file: unintended_html_in_doc_comment
// ignore_for_file: provide_deprecation_message, unintended_html_in_doc_comment

@JS()
library;
Expand Down
2 changes: 1 addition & 1 deletion web/lib/src/dom/angle_instanced_arrays.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Generated from Web IDL definitions.

// ignore_for_file: unintended_html_in_doc_comment
// ignore_for_file: provide_deprecation_message, unintended_html_in_doc_comment

@JS()
library;
Expand Down
2 changes: 1 addition & 1 deletion web/lib/src/dom/attribution_reporting_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Generated from Web IDL definitions.

// ignore_for_file: unintended_html_in_doc_comment
// ignore_for_file: provide_deprecation_message, unintended_html_in_doc_comment

@JS()
library;
Expand Down
2 changes: 1 addition & 1 deletion web/lib/src/dom/background_sync.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Generated from Web IDL definitions.

// ignore_for_file: unintended_html_in_doc_comment
// ignore_for_file: provide_deprecation_message, unintended_html_in_doc_comment

@JS()
library;
Expand Down
2 changes: 1 addition & 1 deletion web/lib/src/dom/battery_status.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Generated from Web IDL definitions.

// ignore_for_file: unintended_html_in_doc_comment
// ignore_for_file: provide_deprecation_message, unintended_html_in_doc_comment

@JS()
library;
Expand Down
2 changes: 1 addition & 1 deletion web/lib/src/dom/clipboard_apis.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Generated from Web IDL definitions.

// ignore_for_file: unintended_html_in_doc_comment
// ignore_for_file: provide_deprecation_message, unintended_html_in_doc_comment

@JS()
library;
Expand Down
2 changes: 1 addition & 1 deletion web/lib/src/dom/compression.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Generated from Web IDL definitions.

// ignore_for_file: unintended_html_in_doc_comment
// ignore_for_file: provide_deprecation_message, unintended_html_in_doc_comment

@JS()
library;
Expand Down
2 changes: 1 addition & 1 deletion web/lib/src/dom/console.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Generated from Web IDL definitions.

// ignore_for_file: unintended_html_in_doc_comment
// ignore_for_file: provide_deprecation_message, unintended_html_in_doc_comment

@JS()
library;
Expand Down
2 changes: 1 addition & 1 deletion web/lib/src/dom/cookie_store.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Generated from Web IDL definitions.

// ignore_for_file: unintended_html_in_doc_comment
// ignore_for_file: provide_deprecation_message, unintended_html_in_doc_comment

@JS()
library;
Expand Down
2 changes: 1 addition & 1 deletion web/lib/src/dom/credential_management.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Generated from Web IDL definitions.

// ignore_for_file: unintended_html_in_doc_comment
// ignore_for_file: provide_deprecation_message, unintended_html_in_doc_comment

@JS()
library;
Expand Down
2 changes: 1 addition & 1 deletion web/lib/src/dom/csp.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Generated from Web IDL definitions.

// ignore_for_file: unintended_html_in_doc_comment
// ignore_for_file: provide_deprecation_message, unintended_html_in_doc_comment

@JS()
library;
Expand Down
2 changes: 1 addition & 1 deletion web/lib/src/dom/css_animations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Generated from Web IDL definitions.

// ignore_for_file: unintended_html_in_doc_comment
// ignore_for_file: provide_deprecation_message, unintended_html_in_doc_comment

@JS()
library;
Expand Down
2 changes: 1 addition & 1 deletion web/lib/src/dom/css_animations_2.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Generated from Web IDL definitions.

// ignore_for_file: unintended_html_in_doc_comment
// ignore_for_file: provide_deprecation_message, unintended_html_in_doc_comment

@JS()
library;
Expand Down
2 changes: 1 addition & 1 deletion web/lib/src/dom/css_cascade.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Generated from Web IDL definitions.

// ignore_for_file: unintended_html_in_doc_comment
// ignore_for_file: provide_deprecation_message, unintended_html_in_doc_comment

@JS()
library;
Expand Down
2 changes: 1 addition & 1 deletion web/lib/src/dom/css_cascade_6.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Generated from Web IDL definitions.

// ignore_for_file: unintended_html_in_doc_comment
// ignore_for_file: provide_deprecation_message, unintended_html_in_doc_comment

@JS()
library;
Expand Down
2 changes: 1 addition & 1 deletion web/lib/src/dom/css_conditional.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Generated from Web IDL definitions.

// ignore_for_file: unintended_html_in_doc_comment
// ignore_for_file: provide_deprecation_message, unintended_html_in_doc_comment

@JS()
library;
Expand Down
2 changes: 1 addition & 1 deletion web/lib/src/dom/css_conditional_5.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Generated from Web IDL definitions.

// ignore_for_file: unintended_html_in_doc_comment
// ignore_for_file: provide_deprecation_message, unintended_html_in_doc_comment

@JS()
library;
Expand Down
2 changes: 1 addition & 1 deletion web/lib/src/dom/css_contain.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Generated from Web IDL definitions.

// ignore_for_file: unintended_html_in_doc_comment
// ignore_for_file: provide_deprecation_message, unintended_html_in_doc_comment

@JS()
library;
Expand Down
2 changes: 1 addition & 1 deletion web/lib/src/dom/css_counter_styles.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Generated from Web IDL definitions.

// ignore_for_file: unintended_html_in_doc_comment
// ignore_for_file: provide_deprecation_message, unintended_html_in_doc_comment

@JS()
library;
Expand Down
2 changes: 1 addition & 1 deletion web/lib/src/dom/css_font_loading.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Generated from Web IDL definitions.

// ignore_for_file: unintended_html_in_doc_comment
// ignore_for_file: provide_deprecation_message, unintended_html_in_doc_comment

@JS()
library;
Expand Down
2 changes: 1 addition & 1 deletion web/lib/src/dom/css_fonts.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Generated from Web IDL definitions.

// ignore_for_file: unintended_html_in_doc_comment
// ignore_for_file: provide_deprecation_message, unintended_html_in_doc_comment

@JS()
library;
Expand Down
2 changes: 1 addition & 1 deletion web/lib/src/dom/css_fonts_5.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Generated from Web IDL definitions.

// ignore_for_file: unintended_html_in_doc_comment
// ignore_for_file: provide_deprecation_message, unintended_html_in_doc_comment

@JS()
library;
Expand Down
2 changes: 1 addition & 1 deletion web/lib/src/dom/css_highlight_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Generated from Web IDL definitions.

// ignore_for_file: unintended_html_in_doc_comment
// ignore_for_file: provide_deprecation_message, unintended_html_in_doc_comment

@JS()
library;
Expand Down
2 changes: 1 addition & 1 deletion web/lib/src/dom/css_masking.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Generated from Web IDL definitions.

// ignore_for_file: unintended_html_in_doc_comment
// ignore_for_file: provide_deprecation_message, unintended_html_in_doc_comment

@JS()
library;
Expand Down
2 changes: 1 addition & 1 deletion web/lib/src/dom/css_nesting.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Generated from Web IDL definitions.

// ignore_for_file: unintended_html_in_doc_comment
// ignore_for_file: provide_deprecation_message, unintended_html_in_doc_comment

@JS()
library;
Expand Down
2 changes: 1 addition & 1 deletion web/lib/src/dom/css_paint_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Generated from Web IDL definitions.

// ignore_for_file: unintended_html_in_doc_comment
// ignore_for_file: provide_deprecation_message, unintended_html_in_doc_comment

@JS()
library;
Expand Down
2 changes: 1 addition & 1 deletion web/lib/src/dom/css_properties_values_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Generated from Web IDL definitions.

// ignore_for_file: unintended_html_in_doc_comment
// ignore_for_file: provide_deprecation_message, unintended_html_in_doc_comment

@JS()
library;
Expand Down
2 changes: 1 addition & 1 deletion web/lib/src/dom/css_transitions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Generated from Web IDL definitions.

// ignore_for_file: unintended_html_in_doc_comment
// ignore_for_file: provide_deprecation_message, unintended_html_in_doc_comment

@JS()
library;
Expand Down
2 changes: 1 addition & 1 deletion web/lib/src/dom/css_transitions_2.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Generated from Web IDL definitions.

// ignore_for_file: unintended_html_in_doc_comment
// ignore_for_file: provide_deprecation_message, unintended_html_in_doc_comment

@JS()
library;
Expand Down
2 changes: 1 addition & 1 deletion web/lib/src/dom/css_typed_om.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Generated from Web IDL definitions.

// ignore_for_file: unintended_html_in_doc_comment
// ignore_for_file: provide_deprecation_message, unintended_html_in_doc_comment

@JS()
library;
Expand Down
2 changes: 1 addition & 1 deletion web/lib/src/dom/css_view_transitions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Generated from Web IDL definitions.

// ignore_for_file: unintended_html_in_doc_comment
// ignore_for_file: provide_deprecation_message, unintended_html_in_doc_comment

@JS()
library;
Expand Down
2 changes: 1 addition & 1 deletion web/lib/src/dom/css_view_transitions_2.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Generated from Web IDL definitions.

// ignore_for_file: unintended_html_in_doc_comment
// ignore_for_file: provide_deprecation_message, unintended_html_in_doc_comment

@JS()
library;
Expand Down
6 changes: 5 additions & 1 deletion web/lib/src/dom/cssom.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Generated from Web IDL definitions.

// ignore_for_file: unintended_html_in_doc_comment
// ignore_for_file: provide_deprecation_message, unintended_html_in_doc_comment

@JS()
library;
Expand Down Expand Up @@ -201,6 +201,7 @@ extension type CSSStyleSheet._(JSObject _) implements StyleSheet, JSObject {
/// stylesheet. You should avoid using this method, and should instead use the
/// more standard
/// [CSSStyleSheet.insertRule] method.
@deprecated
external int addRule([
String selector,
String style,
Expand All @@ -216,6 +217,7 @@ extension type CSSStyleSheet._(JSObject _) implements StyleSheet, JSObject {
/// > This is a _legacy method_ which has been replaced by
/// > the standard method [CSSStyleSheet.deleteRule]. You
/// > should use that instead.
@deprecated
external void removeRule([int index]);

/// The read-only [CSSStyleSheet] property
Expand Down Expand Up @@ -245,6 +247,7 @@ extension type CSSStyleSheet._(JSObject _) implements StyleSheet, JSObject {
/// > While `rules` is unlikely to be removed soon, its availability is not as
/// > widespread and using it will result in compatibility problems for your
/// > site or app.
@deprecated
external CSSRuleList get rules;
}
extension type CSSStyleSheetInit._(JSObject _) implements JSObject {
Expand Down Expand Up @@ -433,6 +436,7 @@ extension type CSSRule._(JSObject _) implements JSObject {
/// console.log(rule.constructor.name);
/// }
/// ```
@deprecated
external int get type;
}

Expand Down
4 changes: 3 additions & 1 deletion web/lib/src/dom/cssom_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Generated from Web IDL definitions.

// ignore_for_file: unintended_html_in_doc_comment
// ignore_for_file: provide_deprecation_message, unintended_html_in_doc_comment

@JS()
library;
Expand Down Expand Up @@ -73,6 +73,7 @@ extension type MediaQueryList._(JSObject _) implements EventTarget, JSObject {
/// so this method was provided as an alias of [EventTarget.addEventListener].
/// Use `addEventListener()` instead of `addListener()` if it is
/// available in the browsers you need to support.
@deprecated
external void addListener(EventListener? callback);

/// The **`removeListener()`** method of the
Expand All @@ -84,6 +85,7 @@ extension type MediaQueryList._(JSObject _) implements EventTarget, JSObject {
/// [EventTarget.removeEventListener].
/// Use `removeEventListener()` instead of `removeListener()` if it is
/// available in the browsers you need to support.
@deprecated
external void removeListener(EventListener? callback);

/// The **`media`** read-only property of the
Expand Down
2 changes: 1 addition & 1 deletion web/lib/src/dom/digital_credentials.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Generated from Web IDL definitions.

// ignore_for_file: unintended_html_in_doc_comment
// ignore_for_file: provide_deprecation_message, unintended_html_in_doc_comment

@JS()
library;
Expand Down
Loading
Loading