List Method shuffle and add in Dart and Flutter

preview_player
Показать описание
Shuffle and add are the two List Methods of today's episode, we will work on three different examples in Dartpad and move then to a more complex example in Flutter. After that video, you will be able to use the methods in your favour and you will understand more easily how you can use them.

00:00 - Introduction
00:30 - Example one: toSet and shuffle method on a list of integer
01:30 - Example two: add and shuffle method on a list of String
01:55 - Example three: shuffle and indexOf method on a list of object
03:10 - Overview over the flutter boilerplate code
03:50 - Add a new card to our cards in the onPressed method
04:15 - Shuffle the cards in the onPressed method
04:51 - Outro

⭐️⭐️Useful Ressources⭐️⭐️

#dart #shuffle #add #programming

Tools we use to grow our YouTube channel
TubeBuddy Review - Manage Your YouTube Channel Easily

Our current YouTube gear

⭐️⭐️Follow us ⭐️⭐️

⭐️⭐️ Support ⭐️⭐️
If you read this so far, thank you once more. If you like to support us, here are some links that could help us a lot.

Affiliate Disclaimer We get monetized by affiliate links to products that we believe in. We may receive a commission for purchases you make through these links. This helps us to keep up our work and support us in our day-to-day work.
Рекомендации по теме
Комментарии
Автор

Make sure you check out our full series of Dart List Method:

FlutterExplained
Автор

I wish you and your loved ones good health and happy days.

vatan
Автор

thank you for explaining shuffle
that is cool

sultanshahen-gz
Автор

Thanks to proper explanation of the list in dart

surendravishwakarma
Автор

Very Clear full.

I want to add content property and write more text .
So that I would like to write Text where else.
And than use to as Content value.

Can u help how can I do that plz?

ibnunuur
Автор

List _shuffle(List items) {
var random = new Random();


for (var i = items.length - 1; i > 0; i--) {

var n = random.nextInt(i + 1);

var temp = items[i];
items[i] = items[n];
items[n] = temp;
}

return items;

faisalfotoh
Автор

Please make some videos related to new firebase plugins and authentication and storage methods. There is a major change in the plugins and many people are looking for it

shubhamchoudhary