Search code examples
flutterdartflutter-getx

Diff between get.put and get.lazyput


I am new to Getx's dependency injection, so can some one explain to me the benefits of Get.put() and Get.lazyPut() and tell me also what difference they have?


Solution

  • Short answer

    • Get.put() will put Immediately
    • Get.lazyPut() will put When you need it