Skip to content

Commit

Permalink
fix(element_subclasses): Fixes compile time error
Browse files Browse the repository at this point in the history
Same motivation of this PR: dint-dev#77
  • Loading branch information
mrocha98 authored Jun 19, 2024
1 parent 45116f0 commit 6bb3aa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/html/dom/element_subclasses.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2755,7 +2755,7 @@ class StyleElement extends HtmlElement {
return null;
}
final text = this.text;
final parsed = css.parse(text as String);
final parsed = css.parse(text ?? '');
final styleSheet = CssStyleSheet.constructor();
for (var node in parsed.topLevels) {
if (node is css.RuleSet) {
Expand Down

0 comments on commit 6bb3aa9

Please sign in to comment.