Universal constructor

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

Implementation

const Universal({
  super.key,
  this.isScroll = false,
  this.useSingleChildScrollView = true,
  this.useListView = false,
  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.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.safeLTRB = false,
  this.enabled = 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.onPressed,
  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.widthFactor,
  this.heightFactor,
  this.filter,
  this.fit,
  this.systemOverlayStyle,
  this.keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  this.restorationId,
  this.blendMode = BlendMode.srcOver,
  this.unifiedButtonCategory,
  this.onHover,
  this.onFocusChange,
  this.style,
  this.focusNode,
  this.autofocus = false,
  this.statesController,
});