Universal constructor

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

Implementation

const Universal({
  super.key,
  this.isScroll = false,
  this.useSingleChildScrollView = true,
  this.isStack = false,
  this.isWrap = false,
  this.expanded = false,
  this.expand = false,
  this.intrinsicHeight = false,
  this.intrinsicWidth = false,
  this.stepWidth,
  this.stepHeight,
  this.isOval = false,
  this.isClipRRect = false,
  this.isClipRect = false,
  this.visible = true,
  this.offstage = false,
  this.enabled = false,
  this.reverse = 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.noScrollBehavior = true,
  this.sized = true,
  this.safeLeft = false,
  this.safeTop = false,
  this.safeRight = false,
  this.safeBottom = false,
  this.wrapSpacing = 0.0,
  this.runSpacing = 0.0,
  this.dragStartBehavior = DragStartBehavior.start,
  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,
  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.onDoubleTapDown,
  this.onDoubleTapCancel,
  this.onLongPress,
  this.onLongPressCancel,
  this.onLongPressDown,
  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.radius,
  this.heroTag,
  this.createRectTween,
  this.flightShuttleBuilder,
  this.placeholderBuilder,
  this.backgroundImage,
  this.onBackgroundImageError,
  this.onForegroundImageError,
  this.foregroundImage,
  this.foregroundColor,
  this.minRadius,
  this.maxRadius,
  this.clipper,
  this.size,
  this.onSecondaryTap,
  this.onSecondaryLongPressMoveUpdate,
  this.onSecondaryLongPressUp,
  this.onSecondaryLongPress,
  this.onSecondaryLongPressEnd,
  this.onSecondaryLongPressStart,
  this.onSecondaryLongPressCancel,
  this.onSecondaryLongPressDown,
  this.onTertiaryLongPress,
  this.onTertiaryLongPressCancel,
  this.onTertiaryLongPressDown,
  this.onTertiaryLongPressEnd,
  this.onTertiaryLongPressMoveUpdate,
  this.onTertiaryLongPressStart,
  this.onTertiaryLongPressUp,
  this.onTertiaryTapCancel,
  this.onTertiaryTapDown,
  this.onTertiaryTapUp,
  this.left,
  this.top,
  this.right,
  this.bottom,
  this.flex,
  this.opacity,
  this.clipBehavior,
  this.refreshConfig,
  this.widthFactor,
  this.heightFactor,
  this.filter,
  this.fit,
  this.systemOverlayStyle,
  this.keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  this.restorationId,
  this.blendMode = BlendMode.srcOver,
});