03 Api Call Code Refactoring | Flutter REST API Series

Поделиться
HTML-код
  • Опубликовано: 15 авг 2022
  • Facebook: / nitishk72
    LinkedIn: / nitishk72
    Patreon: / nitishk72
    Github: github.com/nitishk72

Комментарии • 10

  • @khanriyaz24
    @khanriyaz24 13 дней назад

    Great, I was looking the way to create modal and then use getter to compute the value and get result. Thank you Nitish

  • @thatsenoughdixit
    @thatsenoughdixit 11 месяцев назад +1

    Good work Nitish !

  • @abrorshamuradov1572
    @abrorshamuradov1572 Год назад

    dude, you are the best

  • @alitalaee7468
    @alitalaee7468 2 месяца назад

    please make also another tutorial... you are so good!

  • @harshamilan3279
    @harshamilan3279 Год назад

    superb keep it up

  • @pratikpatrimath4887
    @pratikpatrimath4887 9 месяцев назад

    Thank you so mach sir

  • @SaninThottungal-oz6gd
    @SaninThottungal-oz6gd 3 месяца назад

    i have a doubt, why did you made the fetchusers() function a static function? great video by the way...;)

  • @abasilis
    @abasilis Год назад +1

    Thank you very much for these videos, until this one I've learned a few things I did not know about getting data from a REST Api. I've done many samples, but no one implementing "nested" values in the jSon file. One question, Do I need to implement Future, async and await when calling fetchUsers since these three (combined of course) are already called in the UserApi class? I feel like I'm repeating code. Thanks for clarifying, I really appreciate your time.

    • @NitishKumarSingh
      @NitishKumarSingh  Год назад +3

      I’m glad that you have good understanding of rest API fetching nested values.
      No, you are not repeating code. This can’t be avoided.
      When we call any async method and to get their response, we need to use await before that method call.
      Future and Async is used when any method is calling a async method .

    • @abasilis
      @abasilis Год назад

      @@NitishKumarSingh Thanks! 👍😃