VxUniversal constructor

const VxUniversal({
  1. Key? key,
  2. bool addCard = false,
  3. bool addInkWell = false,
  4. bool useSingleChildScrollView = true,
  5. bool isStack = false,
  6. bool isWrap = false,
  7. bool expanded = false,
  8. bool expand = false,
  9. bool shrink = false,
  10. bool intrinsicHeight = false,
  11. bool intrinsicWidth = false,
  12. bool isOval = false,
  13. bool isClipRRect = false,
  14. bool isClipRect = false,
  15. bool visible = true,
  16. bool offstage = false,
  17. bool enabled = false,
  18. bool reverse = false,
  19. bool autoFocus = false,
  20. bool maintainState = false,
  21. bool transitionOnUserGestures = false,
  22. bool isCircleAvatar = false,
  23. bool maintainAnimation = false,
  24. bool maintainSize = false,
  25. bool maintainSemantics = false,
  26. bool maintainInteractivity = false,
  27. bool excludeFromSemantics = false,
  28. bool? enableFeedback = true,
  29. bool canRequestFocus = true,
  30. bool noScrollBehavior = true,
  31. bool sized = true,
  32. bool gaussian = false,
  33. bool safeLeft = false,
  34. bool safeTop = false,
  35. bool safeRight = false,
  36. bool safeBottom = false,
  37. double fuzzyDegree = 4,
  38. double wrapSpacing = 0.0,
  39. double runSpacing = 0.0,
  40. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  41. Color? shadowColor = Colors.transparent,
  42. Widget replacement = const SizedBox.shrink(),
  43. StackFit stackFit = StackFit.loose,
  44. MainAxisSize mainAxisSize = MainAxisSize.max,
  45. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
  46. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
  47. WrapAlignment wrapAlignment = WrapAlignment.start,
  48. WrapAlignment runAlignment = WrapAlignment.start,
  49. WrapCrossAlignment wrapCrossAlignment = WrapCrossAlignment.start,
  50. VerticalDirection verticalDirection = VerticalDirection.down,
  51. Axis direction = Axis.vertical,
  52. Axis? scrollDirection,
  53. HitTestBehavior behavior = HitTestBehavior.opaque,
  54. BorderRadius borderRadius = BorderRadius.zero,
  55. Color? color,
  56. AlignmentGeometry? alignment,
  57. Widget? child,
  58. List<Widget>? children,
  59. EdgeInsetsGeometry? padding,
  60. ScrollPhysics? physics,
  61. ScrollController? scrollController,
  62. bool? primary,
  63. Decoration? foregroundDecoration,
  64. Matrix4? transform,
  65. Offset? origin,
  66. BoxConstraints? constraints,
  67. double? width,
  68. double? height,
  69. EdgeInsetsGeometry? margin,
  70. Decoration? decoration,
  71. TextBaseline? textBaseline,
  72. TextDirection? textDirection,
  73. GestureTapCallback? onTap,
  74. GestureTapDownCallback? onTapDown,
  75. GestureTapUpCallback? onTapUp,
  76. GestureTapCancelCallback? onTapCancel,
  77. GestureTapDownCallback? onSecondaryTapDown,
  78. GestureTapUpCallback? onSecondaryTapUp,
  79. GestureTapCancelCallback? onSecondaryTapCancel,
  80. GestureTapCallback? onDoubleTap,
  81. GestureLongPressCallback? onLongPress,
  82. GestureLongPressStartCallback? onLongPressStart,
  83. GestureLongPressMoveUpdateCallback? onLongPressMoveUpdate,
  84. GestureLongPressUpCallback? onLongPressUp,
  85. GestureLongPressEndCallback? onLongPressEnd,
  86. GestureDragDownCallback? onVerticalDragDown,
  87. GestureDragStartCallback? onVerticalDragStart,
  88. GestureDragUpdateCallback? onVerticalDragUpdate,
  89. GestureDragEndCallback? onVerticalDragEnd,
  90. GestureDragCancelCallback? onVerticalDragCancel,
  91. GestureDragDownCallback? onHorizontalDragDown,
  92. GestureDragStartCallback? onHorizontalDragStart,
  93. GestureDragUpdateCallback? onHorizontalDragUpdate,
  94. GestureDragEndCallback? onHorizontalDragEnd,
  95. GestureDragCancelCallback? onHorizontalDragCancel,
  96. GestureDragDownCallback? onPanDown,
  97. GestureDragStartCallback? onPanStart,
  98. GestureDragUpdateCallback? onPanUpdate,
  99. GestureDragEndCallback? onPanEnd,
  100. GestureDragCancelCallback? onPanCancel,
  101. GestureScaleStartCallback? onScaleStart,
  102. GestureScaleUpdateCallback? onScaleUpdate,
  103. GestureScaleEndCallback? onScaleEnd,
  104. GestureForcePressStartCallback? onForcePressStart,
  105. GestureForcePressPeakCallback? onForcePressPeak,
  106. GestureForcePressUpdateCallback? onForcePressUpdate,
  107. GestureForcePressEndCallback? onForcePressEnd,
  108. ShapeBorder? shape,
  109. ValueChanged<bool>? onHighlightChanged,
  110. ValueChanged<bool>? onHover,
  111. Color? focusColor,
  112. Color? hoverColor,
  113. Color? highlightColor,
  114. Color? splashColor,
  115. InteractiveInkFeatureFactory? splashFactory,
  116. double? radius,
  117. ShapeBorder? customBorder,
  118. FocusNode? focusNode,
  119. ValueChanged<bool>? onFocusChange,
  120. String? heroTag,
  121. CreateRectTween? createRectTween,
  122. HeroFlightShuttleBuilder? flightShuttleBuilder,
  123. HeroPlaceholderBuilder? placeholderBuilder,
  124. ImageProvider<Object>? backgroundImage,
  125. ImageErrorListener? onBackgroundImageError,
  126. Color? foregroundColor,
  127. double? minRadius,
  128. double? maxRadius,
  129. CustomClipper? clipper,
  130. Size? size,
  131. GestureTapCallback? onSecondaryTap,
  132. GestureLongPressMoveUpdateCallback? onSecondaryLongPressMoveUpdate,
  133. GestureLongPressCallback? onSecondaryLongPressUp,
  134. GestureLongPressCallback? onSecondaryLongPress,
  135. GestureLongPressEndCallback? onSecondaryLongPressEnd,
  136. GestureLongPressStartCallback? onSecondaryLongPressStart,
  137. double? left,
  138. double? top,
  139. double? right,
  140. double? bottom,
  141. int? flex,
  142. double? elevation,
  143. double? opacity,
  144. Clip? clipBehavior,
  145. double? widthFactor,
  146. double? heightFactor,
  147. ImageFilter? filter,
  148. dynamic builder,
  149. BoxFit? fit,
  150. SystemUiOverlayStyle? systemOverlayStyle,
})

Implementation

const VxUniversal({
  super.key,
  this.addCard = false,
  this.addInkWell = false,
  this.useSingleChildScrollView = true,
  this.isStack = false,
  this.isWrap = false,
  this.expanded = false,
  this.expand = false,
  this.shrink = false,
  this.intrinsicHeight = false,
  this.intrinsicWidth = false,
  this.isOval = false,
  this.isClipRRect = false,
  this.isClipRect = false,
  this.visible = true,
  this.offstage = false,
  this.enabled = false,
  this.reverse = false,
  this.autoFocus = false,
  this.maintainState = false,
  this.transitionOnUserGestures = false,
  this.isCircleAvatar = false,
  this.maintainAnimation = false,
  this.maintainSize = false,
  this.maintainSemantics = false,
  this.maintainInteractivity = false,
  this.excludeFromSemantics = false,
  this.enableFeedback = true,
  this.canRequestFocus = true,
  this.noScrollBehavior = true,
  this.sized = true,
  this.gaussian = false,
  this.safeLeft = false,
  this.safeTop = false,
  this.safeRight = false,
  this.safeBottom = false,
  this.fuzzyDegree = 4,
  this.wrapSpacing = 0.0,
  this.runSpacing = 0.0,
  this.dragStartBehavior = DragStartBehavior.start,
  this.shadowColor = Colors.transparent,
  this.replacement = const SizedBox.shrink(),
  this.stackFit = StackFit.loose,
  this.mainAxisSize = MainAxisSize.max,
  this.mainAxisAlignment = MainAxisAlignment.start,
  this.crossAxisAlignment = CrossAxisAlignment.center,
  this.wrapAlignment = WrapAlignment.start,
  this.runAlignment = WrapAlignment.start,
  this.wrapCrossAlignment = WrapCrossAlignment.start,
  this.verticalDirection = VerticalDirection.down,
  this.direction = Axis.vertical,
  this.scrollDirection,
  this.behavior = HitTestBehavior.opaque,
  this.borderRadius = BorderRadius.zero,
  this.color,
  this.alignment,
  this.child,
  this.children,
  this.padding,
  this.physics,
  this.scrollController,
  this.primary,
  this.foregroundDecoration,
  this.transform,
  this.origin,
  this.constraints,
  this.width,
  this.height,
  this.margin,
  this.decoration,
  this.textBaseline,
  this.textDirection,
  this.onTap,
  this.onTapDown,
  this.onTapUp,
  this.onTapCancel,
  this.onSecondaryTapDown,
  this.onSecondaryTapUp,
  this.onSecondaryTapCancel,
  this.onDoubleTap,
  this.onLongPress,
  this.onLongPressStart,
  this.onLongPressMoveUpdate,
  this.onLongPressUp,
  this.onLongPressEnd,
  this.onVerticalDragDown,
  this.onVerticalDragStart,
  this.onVerticalDragUpdate,
  this.onVerticalDragEnd,
  this.onVerticalDragCancel,
  this.onHorizontalDragDown,
  this.onHorizontalDragStart,
  this.onHorizontalDragUpdate,
  this.onHorizontalDragEnd,
  this.onHorizontalDragCancel,
  this.onPanDown,
  this.onPanStart,
  this.onPanUpdate,
  this.onPanEnd,
  this.onPanCancel,
  this.onScaleStart,
  this.onScaleUpdate,
  this.onScaleEnd,
  this.onForcePressStart,
  this.onForcePressPeak,
  this.onForcePressUpdate,
  this.onForcePressEnd,
  this.shape,
  this.onHighlightChanged,
  this.onHover,
  this.focusColor,
  this.hoverColor,
  this.highlightColor,
  this.splashColor,
  this.splashFactory,
  this.radius,
  this.customBorder,
  this.focusNode,
  this.onFocusChange,
  this.heroTag,
  this.createRectTween,
  this.flightShuttleBuilder,
  this.placeholderBuilder,
  this.backgroundImage,
  this.onBackgroundImageError,
  this.foregroundColor,
  this.minRadius,
  this.maxRadius,
  this.clipper,
  this.size,
  this.onSecondaryTap,
  this.onSecondaryLongPressMoveUpdate,
  this.onSecondaryLongPressUp,
  this.onSecondaryLongPress,
  this.onSecondaryLongPressEnd,
  this.onSecondaryLongPressStart,
  this.left,
  this.top,
  this.right,
  this.bottom,
  this.flex,
  this.elevation,
  this.opacity,
  this.clipBehavior,
  this.widthFactor,
  this.heightFactor,
  this.filter,
  this.builder,
  this.fit,
  this.systemOverlayStyle,
}) : assert(!(addCard && addInkWell), 'One of them must be true');