انت مشغل الـ AdBlock !!
ياريت تقفله لوسمحت 😊 😊
تنبيه هام ✋
إذا كانت الإعلانات مزعجة بالنسبة لك، فيُمكنك التبرع ب50$ وسيتم إيقاف الإعلانات لمدة شهر لجميع زوار الموقع 🧡 ويُمكنك التواصل معنا عن طريق صفحة الفيس بوك
فى هذا الدرس سوف نتعلم :
⭐ المصدر
| List Properties & Methods | الشرح |
|---|---|
| length | returns the number of elements in an list mylist.length |
| first | Returns the first element mylist.first |
| last | Returns the last element mylist.last |
| reversed | reverse the order of the list and get list by using: mylist.reversed.toList() |
| indexOf() | Search the list for an element and returns its index mylist.indexOf() |
| add() | Adds value to the end of the list mylist.add() |
| addAll() | Adds values to the end of this list mylist.addAll([ , ]) |
| insert( int index, element) ) | Inserts one element at a certain index mylist.insert() |
| insertAll(int index, [ , ]) | Inserts more than element at a certain index mylist.insertAll() |
| remove() | Removes element from a list & Returns true || false mylist.remove() |
| contains() | Returns true || false mylist.contains() |
| map( (item) => .... ).toList() | gives us a list List newList = mylist.map((item) => ... ).toList(); |
| forEach( (item) { } ) | gives us values |
| ddddddddddddddddd |
ياريت تقفله لوسمحت 😊 😊
تنبيه هام ✋
إذا كانت الإعلانات مزعجة بالنسبة لك، فيُمكنك التبرع ب50$ وسيتم إيقاف الإعلانات لمدة شهر لجميع زوار الموقع 🧡 ويُمكنك التواصل معنا عن طريق صفحة الفيس بوك