showWindow<T> function

void showWindow<T>({
  1. @required BuildContext? context,
  2. RelativeRect? position,
  3. @required Widget? window,
  4. double elevation = 8.0,
  5. int duration = _windowPopupDuration,
  6. String? semanticLabel,
  7. MaterialType? type,
})

Implementation

void showWindow<T>({
  @required BuildContext? context,
  RelativeRect? position,
  @required Widget? window,
  double elevation = 8.0,
  int duration = _windowPopupDuration,
  String? semanticLabel,
  MaterialType? type,
}) {
  Navigator.push(
    context!,
    _PopupWindowRoute<T>(position: position!, child: window!, elevation: elevation, duration: duration, semanticLabel: semanticLabel, barrierLabel: MaterialLocalizations.of(context).modalBarrierDismissLabel, type: type!),
  );
}