VGuideRoute<T> constructor
VGuideRoute<T> ({
- required Widget child,
- Offset? offsetLT,
- Offset? offsetRB,
- bool cancelable = true,
- bool outsideTouchCancelable = true,
- double opacity = 0.6,
- Duration duration = const Duration(milliseconds: 300),
- List<
RRect> ? highlights, - VoidCallback? onPopupShow,
- VoidCallback? onPopupDismiss,
- Color? holeBorderColor = Colors.white,
- 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);
}