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 may not be worth fixing, but in the API docsFutureOr is listed as being a "class", even though it isn't actually one. It is weird though because in the code, it is listed as an abstract class (with docs saying it really isn't a class). So presumably that is why it shows up as a class in dartdoc. This could be confusing, because there really are differences between just being a type and being a class.
In thinking about any other weird types like this, void and dynamic came to mind. Neither of these have any documentation at all that I can find, because we didn't do the abstract class workaround just to get docs.
It might be worth creating a new category called just "type", which we could use just to document these, with some special casing in dartdoc?
The text was updated successfully, but these errors were encountered:
jakemac53
changed the title
FutureOr, void, and dynamic docs improvmentsFutureOr, void, and dynamic docs improvements
Feb 23, 2024
Yeah, I'd love to get that all fixed; the main issue is #2391.
We could special case FutureOr though, to indicate it is not a class.
srawlins
added
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
P3
A lower priority bug or feature request
labels
Feb 23, 2024
This may not be worth fixing, but in the API docs
FutureOr
is listed as being a "class", even though it isn't actually one. It is weird though because in the code, it is listed as an abstract class (with docs saying it really isn't a class). So presumably that is why it shows up as a class in dartdoc. This could be confusing, because there really are differences between just being a type and being a class.In thinking about any other weird types like this,
void
anddynamic
came to mind. Neither of these have any documentation at all that I can find, because we didn't do theabstract class
workaround just to get docs.It might be worth creating a new category called just "type", which we could use just to document these, with some special casing in dartdoc?
The text was updated successfully, but these errors were encountered: