TGViewer
Flutter For Dev - новости, статьи, дизайн. Flutter For Dev - новости, статьи, дизайн. @flutterfordev · 3.12K subscribers
Post #1614 1.34K
Пока команда Flutter молчит, в релиз вышел Dart 3.12.

Главная фича — private named parameters. Раньше так было нельзя, приходилось городить initializer list:

class Point {
final int _x, _y;

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


Теперь :

class Point {
final int _x, _y;

Point({required this._x, required this._y});
}

Point(x: 1, y: 2); // снаружи публичные имена


Dart сам уберёт underscore для имени параметра снаружи

Из остального:

— новый lint simple_directive_paths для очистки лишних ./ и ../
— dart fix научился чинить avoid_final_parameters
— analyzer стартует быстрее
— Git LFS теперь поддерживается в pub dependencies

Читать можно тут:
https://dart.dev/changelog
https://github.com/dart-lang/sdk/blob/main/CHANGELOG.md#3120
  • ❤ 20
  • 👍 2
  • 🥰 2
  • 🔥 1
More from @flutterfordev
  1. Sep 30, 2026How I converted GenLatte to fullstack Dart: Craig Labenz из команды Flutter рассказал, как…
  2. Sep 13, 2026Material and Cupertino decoupling are here: Крейг Лабенц объясняет, зачем Material и Cuper…
  3. Sep 10, 2026Skills CLI 1.0: Bundle and distribute AI agent skills for your packages: Команда Dart выпу…
  4. Sep 8, 2026#Новостизанеделю А вот и очередная подборка новостей. Спасибо, что читаете их. — Свет в ко…
  5. Sep 3, 2026Technique of the Week(async*): В новом выпуске Technique of the Week рассказывают, про asy…
  6. Sep 3, 2026Benchmark: Flutter state management approaches and thier performance: Filip Hráček пять су…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →