dint-dev / universal_html

Cross-platform 'dart:html'.
https://pub.dev/packages/universal_html
Apache License 2.0
201 stars 60 forks source link

Error: The argument type 'String?' can't be assigned to the parameter type 'Object' because 'String?' is nullable and 'Object' isn't. in final parsed = css.parse(text); #101

Open zhangjingfang7 opened 1 month ago

zhangjingfang7 commented 1 month ago

at class universal_html-2.2.4/lib/src/html/dom/element_subclasses.dart in 2757 rows exist problem: final text = this.text; final parsed = css.parse(text as String);

Error: The argument type 'String?' can't be assigned to the parameter type 'Object' because 'String?' is
nullable and 'Object' isn't.

need to cover