Learn Flutter
3.97K subscribers
23 photos
1 video
2 files
1.31K links
Curated Content - Every Weekday at 17:00 UTC

Publish news, tools, tutorial and everything you need to know about Flutter to learn or improve as a Developer

Bluesky: https://bsky.app/profile/oldmetalmind.bsky.social
Download Telegram
#performance

map.keys.contains is 6000 times slower than map.containsKeys

Source:
https://twitter.com/_incendial/status/1679134565158342660?t=hNA2zfnNrUOGDL6agHcjow&s=19
#tip

With latest versions its now possible to loop through the indexes of an array.


final items = [‘A’, ‘B’, ‘C’];

for(final (index, item) in items.indexed) {
print('item $item at $index');
}


https://api.dart.dev/stable/3.1.0/dart-collection/IterableExtensions/indexed.html