-
Notifications
You must be signed in to change notification settings - Fork 716
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Effective Dart Design Guidelines to Reflect Dart 3.0 Class Mod…
…ifiers (#6449) This PR updates the Effective Dart Design Guidelines to align with Dart 3.0's introduction of class modifiers. The changes include: For API Maintainers: Removed the recommendation to document whether a class supports being extended or used as an interface. Added guidance to use class modifiers (e.g., final, sealed, interface, mixin) to explicitly define a class's capabilities. Emphasized that class modifiers should replace manual documentation for enforcing restrictions on extending or implementing classes. For Users: Removed guidelines advising users to avoid extending or implementing classes not meant for it, as these restrictions are now enforced by class modifiers in Dart 3.0. This change ensures the guidelines are up-to-date with Dart's latest features and best practices. Fixes: #6437
- Loading branch information
Showing
2 changed files
with
15 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters