dint-dev / universal_html

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

Update element_subclasses.dart #75

Closed UsamaSarwar closed 1 year ago

UsamaSarwar commented 1 year ago

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

To fix this, we need to change the argument type to 'String'.

This will tell the compiler that the argument is a non-nullable string, and the error will be resolved.

Here are some additional details about the error:

captainredbutt commented 1 year ago

Is there any ETA on this fix. This is causing my builds to fail because of a 3rd party dependency that I can't change.

msomali commented 1 year ago

Can you please publish the fix?

goileo commented 1 year ago

Is there any ETA on this fix. This is causing my builds to fail because of a 3rd party dependency that I can't change.

you're right. I can't change the 3rd party dependency is real reson.(delete)

you can try add dependency_overrides in pubdesc.yaml

netfotechsolutions commented 1 year ago

Better fix would be to make it null safe like text! instead of text as String. Isn't it?