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
This happens because DateTime.isAfter is using a private value _value to do the comparison but since TZDateTime only implements the interface, it has no privates that would be accessible. As mentioned in dart-lang/sdk#25462 there's not much this library can do about it since it's a language level problem which won't be caught by any compiler.
The text was updated successfully, but these errors were encountered:
The following line of code will cause a runtime error:
new DateTime.now().isAfter(new TZDateTime.now(UTC))
The error:
This happens because DateTime.isAfter is using a private value
_value
to do the comparison but since TZDateTime only implements the interface, it has no privates that would be accessible. As mentioned in dart-lang/sdk#25462 there's not much this library can do about it since it's a language level problem which won't be caught by any compiler.The text was updated successfully, but these errors were encountered: