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زیاتر فێربە لە
- Dart Functions and Collectionsکردارەکان و کۆکراوەکانی Dart
- Dart Classes, Inheritance and Mixinsکلاسەکان، بۆماوە و میکسینەکان لە Dartـدا
- Building URIs in Dart: SMS and E-mail Linksدروستکردنی URI لە Dartـدا: بەستەرەکانی نامەی کورت و ئیمەیڵ
- Container: Size, Padding, Margin and AlignmentContainer: قەبارە، بۆشایی ناوەوە، پەراوێز و ڕێکخستنی شوێن
- Project: A Product Catalogue Screenپرۆژە: شاشەی کەتەلۆگی کاڵاکان
- Positional, Keyword and Default Argumentsئارگیومێنتە شوێنییەکان، ئارگیومێنتە ناودارەکان و نرخە بنەڕەتییەکان
- Widgets and the Widget Treeویجێتەکان و داری ویجێتەکان
- MaterialApp and ScaffoldMaterialApp و Scaffold