setContext method

void setContext(
  1. BuildContext context
)

Set BuildContext to the controller used to perform some methods over it

Implementation

void setContext(BuildContext context) {
  _context = context;
  notifyListeners();
}