1. Glossaryفەرهەنگی زاراوەکان
Named parameter
پارامیتەری ناودار
Proposed Kurdish term — under reviewزاراوەی پێشنیارکراو — لە ژێر پێداچوونەوەدایە

Definitionپێناسە

A that the caller gives by name, as title: 'Home', so the order does not matter. Dart writes them in { } and marks the ones that must be given with required; Flutter widgets use them everywhere.

کە بانگکەر بە ناوەکەیەوە دەیدات، وەک title: 'Home'، بۆیە ڕیزبەندییان گرنگ نییە. Dart لە ناو { }ـدا دەیاننووسێت و ئەوانەی دەبێت بدرێن بە required نیشانە دەکات؛ لە هەموو شوێنێک بەکاریان دەهێنن.

Exampleنموونە

A function with one required and one optional named parameter.

بە پێویست و یەکێکی ئارەزوومەندانە.

void greet({required String name, String greeting = 'Hello'}) {
  print('$greeting, $name!');
}

void main() => greet(name: 'Shilan'); // Hello, Shilan!

Other Kurdish renderings in useوەرگێڕانە کوردییەکانی تر

پارامیتەرە ناودارەکە، پارامیتەرە ناودارەکان، پارامیتەرێکی ناودار

Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە

Proposed: the registry's parameter «پارامیتەر» + ناودار ('named'). The declaration side of what Python (and the Fundamentals of Programming proposal keyword-argument «ئارگیومێنتی ناودار») calls keyword arguments, as parameter is to argument.

Related termsزاراوە پەیوەندیدارەکان

Learn more inزیاتر فێربە لە