dint-dev / universal_html

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

Fixes types nullability for compatibility with dart:html APIs: #81

Closed fsw closed 1 year ago

fsw commented 1 year ago

Seems that nullability of those fields changed before dart 2.17 so I think those can be safely updated as this library targets sdk >=2.17.0

set Location.search to nullable https://api.dart.dev/stable/2.17.0/dart-html/Location/search.html

set HttpRequest.responseText to nullable https://api.dart.dev/stable/2.17.0/dart-html/HttpRequest/responseText.html

added HttpRequestUpload interface events https://api.dart.dev/stable/2.17.0/dart-html/HttpRequestUpload-class.html

set FormData.get return to nullable https://api.dart.dev/stable/2.17.0/dart-html/FormData/get.html

set Element.className to non nullable https://api.dart.dev/stable/2.17.0/dart-html/Element/className.html

set SelectElement.value to nullable https://api.dart.dev/stable/2.17.0/dart-html/SelectElement/value.html

set TextAreaElement.textLength and TextAreaElement.value to nullable https://api.dart.dev/stable/2.17.0/dart-html/TextAreaElement-class.html

added Touch.page https://api.dart.dev/stable/2.17.0/dart-html/Touch-class.html

terrier989 commented 1 year ago

Thank you for the PR! 👍