context property

BuildContext? get context

The BuildContext to be used.

Implementation

BuildContext? get context => _context;
set context (BuildContext? context)

Implementation

set context(BuildContext? context) {
  if (context != null) {
    // Don't assign again. Too dangerous.
    _context ??= context;
  }
}