Constructors in Dart

preview_player
Показать описание
in this video, Brad guides you through Dart's many constructors.
Рекомендации по теме
Комментарии
Автор

Short, informative, eloquent and audible.

MohammadMalan
Автор

How are those named constructor examples correct? I thought you had to make factory constructors to do things like that?

briandell
Автор

5 internet points for whomever can tell me how many times I say “constructor” in this video :)

CodeWithCypert
Автор

In flutter i see this, cant wrap my head around {} and required stuff.. can you explain that too ?

class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title});
}

kishanbsh
Автор

I come from a traditional programming background (BASIC at home and RPG/400 at work (IBM midrange computer, quite some time ago to be honest). There were no such things as constructors. I still don't really get how I would use one instead of doing something a traditional way. I'm not clear on the benefit or how it would actually be used IN PRAGMATIC REALITY. This video did not really help me for that reason.

herseem