VGuideRoute<T> constructor

VGuideRoute<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,
  11. Color? holeBorderColor = Colors.white,
  12. double holeBorderWidth = 2,
})

Implementation

VGuideRoute({
  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,
  this.holeBorderColor = Colors.white, // 默认白色描边
  this.holeBorderWidth = 2,
}) {
  assert(opacity <= 1.0 && opacity >= 0.0);
}