Answers for "getx flutter finding controller in widgets"

1

getx flutter finding controller in widgets

//it uses in top level widget and controller is availlable to its child widget tree
  
final Your_Controller c = Get.put(Your_Controller());

// to find that controller in child widget where it finds to use controller..
 final Your_Controller c = Get.find();
Posted by: Guest on May-21-2021

Browse Popular Code Answers by Language