setContext method
Set BuildContext to the controller used to perform some methods over it
Implementation
void setContext(BuildContext context) {
_context = context;
notifyListeners();
}
Set BuildContext to the controller used to perform some methods over it
void setContext(BuildContext context) {
_context = context;
notifyListeners();
}