showPopWindow static method

void showPopWindow(
  1. dynamic context,
  2. GlobalKey<State<StatefulWidget>> popKey,
  3. Widget popWidget, {
  4. double leftOffset = 0,
  5. double topOffset = 0,
  6. dynamic barrierDismissible = false,
  7. dynamic barrierColor = Colors.black54,
})

Implementation

static void showPopWindow(context, GlobalKey popKey, Widget popWidget,
    {double leftOffset=0,double topOffset=0,barrierDismissible=false,barrierColor=Colors.black54}) {
  _context=context;
  Navigator.push(context,PopRoute(barrierDismissible, barrierColor, child: _PopupWindow(popWidget, popKey,leftOffset,topOffset)));
}