showPlannerMenu method

void showPlannerMenu(
  1. Offset pos,
  2. PlannerTime time,
  3. Function onClose
)

Implementation

void showPlannerMenu(Offset pos, PlannerTime time, Function onClose) {
  menuPos = pos;
  menuType = MenuType.planner;
  menuEntry = null;
  menuTime = time;
  // Wire the close callback here too (it was previously only set for the entry
  // menu), so dismissing the create menu rebuilds the host like the entry menu
  // does — needed now that the all-day band also opens the create menu (#72).
  _onCloseMenu = onClose;
}