hasContext property

bool get hasContext

Returns whether a BuildContext is currently attached.

Implementation

bool get hasContext => _context != null;