Skip to content

Bump meta from 1.18.1 to 1.18.2#1066

Open
dependabot[bot] wants to merge 1 commit intodevfrom
dependabot/pub/dev/meta-1.18.2
Open

Bump meta from 1.18.1 to 1.18.2#1066
dependabot[bot] wants to merge 1 commit intodevfrom
dependabot/pub/dev/meta-1.18.2

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Mar 23, 2026

Bumps meta from 1.18.1 to 1.18.2.

Changelog

Sourced from meta's changelog.

3.12.0

Released on: Unreleased

Language

Private named parameters

Dart now supports private named parameters. Before 3.12, it was an error to have a named parameter that starts with an underscore:

class Point {
  final int _x, _y;
  // Compile error in Dart 3.11.
  Point({required this._x, required this._y});
}

That means that when you wanted to initialize a private field from a named parameter, you had to write an explicit initializer list:

class Point {
  final int _x, _y;
  Point({required int x, required int y})
    : x = _x,
      y = _y;
}

All the initializer list is doing is scraping off the _. In Dart 3.12, the language will do that for you. Now you can write:

class Point {
  final int _x, _y; // Private fields.
  Point({required this._x, required this._y});
}

It behaves exactly like the previous example. The initialized fields are private, but the argument names written at the call site are public:

main() {
  print(Point(x: 1, y: 2));
}
</tr></table> 

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [meta](https://github.com/dart-lang/sdk/tree/main/pkg) from 1.18.1 to 1.18.2.
- [Changelog](https://github.com/dart-lang/sdk/blob/main/CHANGELOG.md)
- [Commits](https://github.com/dart-lang/sdk/commits/HEAD/pkg)

---
updated-dependencies:
- dependency-name: meta
  dependency-version: 1.18.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dart Pull requests that update Dart code dependencies Pull requests that update a dependency file labels Mar 23, 2026
@dependabot dependabot bot requested a review from dave-doty as a code owner March 23, 2026 01:05
@dependabot dependabot bot added dependencies Pull requests that update a dependency file dart Pull requests that update Dart code labels Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dart Pull requests that update Dart code dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants