Dart Functions - Generic Functions

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

I'm new to dart and I've watched numerous dart tutorial judging by the views and likes. I'm learning more watching your 10-30 min videos than all those so called acclaimed tutorials. Thank you!

ishay
Автор

Thanks for the short, precise video. It's great to see other South African devs

DarkChasmGamers
Автор

Could we use Action<T> with this function? I have tried and I do not think we could use. But I couldn't find a valid reason.

nazjankurt
Автор

Nice video.
So generic functions are like Dynamic? Because dynamic also works the same way. if we use <Dynamic> instead of <T> it'll still do the same thing?

Edit: I guess I got it wrong, It means that the function will set the data type as required by the data we input, Like in your case at first we had <double> so the the listOperation will use double datatype and in the second case we had <String> values so the listOperation will actually take String as datatype.

xpwahab