We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34e5550 commit 842bc8eCopy full SHA for 842bc8e
packages/flutter/lib/src/services/dom.dart
@@ -336,8 +336,11 @@ class DomCSSStyleSheet extends DomStyleSheet {}
336
/// [DomCSSStyleSheet]'s required extension.
337
extension DomCSSStyleSheetExtension on DomCSSStyleSheet {
338
/// Inserts a rule into this style sheet.
339
- int insertRule(String rule, [int? index]) => js_util
340
- .callMethod(this, 'insertRule', <Object>[rule, if (index != null) index]);
+ int insertRule(String rule, [int? index]) =>
+ js_util.callMethod<double>(this, 'insertRule', <Object>[
341
+ rule,
342
+ if (index != null) index.toDouble()
343
+ ]).toInt();
344
}
345
346
/// A list of token.
0 commit comments