You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In general, we use the IDL as the source of truth. Making a property nullable to tackle various browser capabilities and edge-cases means excessive null-checks for users and even more breaking changes when those eventually change. dart:html's body member is one such example of leading to excessive null-checks. We have discussed emitting metadata though on various members to signal which browser supports it, but that may be too verbose.
As for the fix, I'd avoid catching cast errors, and instead use extension members:
Hello, we are getting reports of this issue from
device_info_plus
users:The
deviceMemory
is declared asdouble
but sometimes it may benull
.The following comment has more details: fluttercommunity/plus_plugins#3391 (comment)
I am not sure if this may be the case for other navigator properties.
The text was updated successfully, but these errors were encountered: