Spread operator & Null-aware operator on Lists, Maps and Sets in Dart

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ต.ค. 2024

ความคิดเห็น • 35

  • @calanm7880
    @calanm7880 ปีที่แล้ว

    You demystified this operator and showed how useful a Dart feature this elegant notation is. I feel empowered after the YT algorithm served your video up today

  • @mohammadalishuvo6329
    @mohammadalishuvo6329 3 ปีที่แล้ว +3

    From the dart documentation, i couldn't learn this concept properly, but your presentation style and the way you teach really appreciated and now finally understood the spread operator

  • @ganeshbhat5761
    @ganeshbhat5761 3 ปีที่แล้ว +2

    Just what I needed for today! The null awareness!
    Thanks and kudos! Keep up the good work❤️

  • @uvaismohammad4216
    @uvaismohammad4216 2 ปีที่แล้ว

    What an amazing explanation...Thank you so much 🥰🥰🥰.......Blooper was really fun😂😂

  • @Jan123.
    @Jan123. 3 ปีที่แล้ว

    Great video!

  • @rahmitufanoglu5380
    @rahmitufanoglu5380 3 ปีที่แล้ว

    in 2:29 shouldn't it be 'List? listNull' ?

  • @dipakbari4
    @dipakbari4 3 ปีที่แล้ว +1

    2:09 I got this error before and it took me a while to understand. 😂

  • @thatsthelife552
    @thatsthelife552 3 ปีที่แล้ว +1

    Good job!

  • @thihathantsin1934
    @thihathantsin1934 2 ปีที่แล้ว

    your explanation is very clear and nice and you can give a good and clear example.I really love it.
    Btw you are also cute: ').

  • @mobiledev619
    @mobiledev619 ปีที่แล้ว +1

    can you explain List.from() , please

  • @codewithchic3952
    @codewithchic3952 3 ปีที่แล้ว +2

    Nice one

  • @JeffreyHamlin
    @JeffreyHamlin 2 ปีที่แล้ว

    Like Mohammed said, the documentation isn't the best - but you explained it quite nicely!!

  • @mohamedmostapha2798
    @mohamedmostapha2798 3 ปีที่แล้ว +1

    Great..keep up the good work ;)

  • @raffaelenicolapiazzolla3927
    @raffaelenicolapiazzolla3927 3 ปีที่แล้ว +2

    Really like this channel, your videos are really helpful and precise. I have a single suggestion to both of you: try to improve your English pronunciation. Sometimes I cannot understand you properly and maybe if you become more clear your channel will grow faster. I'm sorry to say this, but something that drives me crazy is the way you guys pronunce the word "variable" 😂

    • @FlutterExplained
      @FlutterExplained  3 ปีที่แล้ว +1

      Hi Raffaele, thanks for your feedback. We will try to improve, but if one year in NZ did not change anything, I believe there is not much hope. ✌

    • @FlutterExplained
      @FlutterExplained  3 ปีที่แล้ว

      @Eucalypticus Thank you, that is an amazing idea. I will think about it and maybe we can include them in the future. Thanks for your amazing feedback :)

    • @peterwetherall2623
      @peterwetherall2623 3 ปีที่แล้ว

      I'm a native English speaker and I find you very clear. Of course you will have an accent. Maybe it is more difficult for people with English as a second language.

    • @redberries8039
      @redberries8039 3 ปีที่แล้ว

      I'm English and you sound fine.

  • @purushottampk4530
    @purushottampk4530 3 ปีที่แล้ว

    Good content and you are look like a Trinity (The Matrix)

  • @salwafaisalfotoh785
    @salwafaisalfotoh785 3 ปีที่แล้ว +1

    when we use .. and when we use 3 dot ...?

    • @FlutterExplained
      @FlutterExplained  3 ปีที่แล้ว +2

      .. is a call on classes to execute multiple methods on the class and return the class itself (will probably mutate something inside of the instance)
      ... is the spread operator and is used on Lists to merge them into other Lists
      var list1 = ["Mike", "Tim"]
      var list2 = ["Jincha"]
      var result = [...list1, ...list2] // ["Mike, "Tim", "Jincha"]

  • @mizanur_sajid
    @mizanur_sajid 3 ปีที่แล้ว +1

    is this series already over?😢

    • @FlutterExplained
      @FlutterExplained  3 ปีที่แล้ว

      Not yet, at the moment there is just a lot on Mahtabs plate. What would you love to see next from her?

  • @fruitfcker5351
    @fruitfcker5351 3 ปีที่แล้ว

    I'm having an error on *Friend({**this.name**, this.age});* saying .name and .age cannot have a value of null.

    • @fruitfcker5351
      @fruitfcker5351 3 ปีที่แล้ว

      FYI, I'm not doing this on DartPad but on command line dart and vscode. It appears null safety is enabled.

  • @Klazyo
    @Klazyo 3 ปีที่แล้ว +1

    I subscribe cause you are cute and have a cute accent