modalContext property

  1. @override
BuildContext? get modalContext
override

Implementation

@override
BuildContext? get modalContext {
  if (_context?.mounted == true) {
    return _context;
  }
  return null;
}