VPopupRoute<T> constructor

VPopupRoute<T>({
  1. required Widget child,
  2. Offset? offsetLT,
  3. Offset? offsetRB,
  4. bool cancelable = true,
  5. bool outsideTouchCancelable = true,
  6. double opacity = 0.6,
  7. Duration duration = const Duration(milliseconds: 300),
  8. List<RRect>? highlights,
  9. VoidCallback? onPopupShow,
  10. VoidCallback? onPopupDismiss,
})

Implementation

VPopupRoute(
    {required this.child,
    this.offsetLT,
    this.offsetRB,
    this.cancelable = true,
    this.outsideTouchCancelable = true,
    this.opacity = 0.6,
    this.duration = const Duration(milliseconds: 300),
    this.highlights,
    this.onPopupShow,
    this.onPopupDismiss}) {
  assert(opacity <= 1.0 && opacity >= 0.0);
}