Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit d1a8ce2

Browse files
author
Dart CI
committed
Version 2.18.0-22.0.dev
Merge commit '769929130409e270cd3f1fe7bb4ca7d90698028f' into 'dev'
2 parents f106c39 + 7699291 commit d1a8ce2

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

pkg/analyzer/lib/dart/element/element.dart

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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

tools/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ CHANNEL dev
2727
MAJOR 2
2828
MINOR 18
2929
PATCH 0
30-
PRERELEASE 21
30+
PRERELEASE 22
3131
PRERELEASE_PATCH 0

0 commit comments

Comments
 (0)