-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.library-ffi
Description
As pointed out by @lrhn
Avoid having a doc comment on both the setter and the getter, as DartDoc will show only one (the one on the getter.)
However, the documentation of the getter does not show up when hovering the setter (at least not in VSCode).
For now, we create the dart:ffi documentation both for getter and setter, but we should remove the documentation on the setter once all IDEs properly support it.
main() {
final zoo = Zoo();
zoo.numAnimals = 3; // No documentation on numAnimals setter.
print(zoo.numAnimals);
}
class Zoo {
int _numAnimals;
/// The [numAnimals] in the zoo.
int get numAnimals => _numAnimals;
void set numAnimals(int numAnimals) {
_numAnimals = numAnimals;
}
}Metadata
Metadata
Assignees
Labels
area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.library-ffi