This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
pkg/analyzer/lib/dart/element Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1523,9 +1523,11 @@ abstract class ParameterElement
15231523 /// parameters are always positional, unless the experiment 'non-nullable' is
15241524 /// enabled, in which case named parameters can also be required.
15251525 ///
1526- /// Note: regardless of the state of the 'non-nullable' experiment, this will
1527- /// return `false` for a named parameter that is annotated with the
1528- /// `@required` annotation.
1526+ /// Note: regardless of the state of the 'non-nullable' experiment, the
1527+ /// presence or absence of the `@required` annotation does not change the
1528+ /// meaning of this getter. The parameter `{@required int x}` will return
1529+ /// `false` and the parameter `{@required required int x}` will return
1530+ /// `true`
15291531 // TODO(brianwilkerson) Rename this to `isRequired`.
15301532 bool get isNotOptional;
15311533
Original file line number Diff line number Diff line change @@ -27,5 +27,5 @@ CHANNEL dev
2727MAJOR 2
2828MINOR 18
2929PATCH 0
30- PRERELEASE 21
30+ PRERELEASE 22
3131PRERELEASE_PATCH 0
You can’t perform that action at this time.
0 commit comments