init method

void init(
  1. BuildContext context
)

Call this function after initialization of MaterialApp to provide context

Implementation

void init(BuildContext context) {
  _context = context;
}