-
Notifications
You must be signed in to change notification settings - Fork 127
Closed
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work onarea-web-designSomething a web designer interested in helping could do.Something a web designer interested in helping could do.type-enhancementA request for a change that isn't a bugA request for a change that isn't a bug
Description
Dart 3 apps new class modifiers (dart-lang/language#2242), and the core libraries have been updated to many cases to use these. For example, the platform
class in dart:io
is now abstract final
.
In the current DartDocs it's very hard to see these modifiers (e.g. platform). They are shown just textually near the top:
I'd like to suggest the following improvements to make class modifiers more clear:
- Show capability chips after the class name (similar to the chips we show on API members in the rest of the page):
- On generative constructors, show them as now available (e.g. using
strikethroughtext) with capability chips detailing why. From @lrhn the combinations where the constructor isn't available are: a)sealed
, b)abstract final
, and c)abstract interface
).
Metadata
Metadata
Assignees
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work onarea-web-designSomething a web designer interested in helping could do.Something a web designer interested in helping could do.type-enhancementA request for a change that isn't a bugA request for a change that isn't a bug