UKeyValue constructor

const UKeyValue({
  1. required Widget leading,
  2. required Widget trailing,
  3. Key? key,
  4. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.spaceBetween,
  5. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
  6. GestureTapCallback? onTap,
  7. GestureLongPressCallback? onLongPress,
  8. ValueChanged<bool>? onHover,
  9. EdgeInsetsGeometry? padding,
  10. EdgeInsetsGeometry? margin,
  11. Color? color,
  12. Gradient? gradient,
  13. BoxBorder? border,
  14. double? radius,
  15. List<BoxShadow>? boxShadow,
  16. double? opacity,
  17. String? tooltip,
  18. String? semanticsLabel,
  19. bool splash = false,
  20. bool visible = true,
  21. VoidCallback? onPress,
  22. BoxFit? fit,
  23. AlignmentGeometry fitAlignment = Alignment.center,
  24. double? scale,
  25. double? rotate,
  26. Offset? translate,
  27. bool center = false,
  28. bool safeArea = false,
  29. Axis? scrollable,
  30. ScrollController? scrollController,
  31. TextDirection? textDirection,
  32. int? expanded,
  33. int? flexible,
  34. bool positioned = false,
  35. double? left,
  36. double? top,
  37. double? right,
  38. double? bottom,
  39. double? positionedWidth,
  40. double? positionedHeight,
})

Implementation

const UKeyValue({
  required this.leading,
  required this.trailing,
  super.key,
  this.mainAxisAlignment = MainAxisAlignment.spaceBetween,
  this.crossAxisAlignment = CrossAxisAlignment.center,
  this.onTap,
  this.onLongPress,
  this.onHover,
  this.padding,
  this.margin,
  this.color,
  this.gradient,
  this.border,
  this.radius,
  this.boxShadow,
  this.opacity,
  this.tooltip,
  this.semanticsLabel,
  this.splash = false,
  this.visible = true,
  this.onPress,
  this.fit,
  this.fitAlignment = Alignment.center,
  this.scale,
  this.rotate,
  this.translate,
  this.center = false,
  this.safeArea = false,
  this.scrollable,
  this.scrollController,
  this.textDirection,
  this.expanded,
  this.flexible,
  this.positioned = false,
  this.left,
  this.top,
  this.right,
  this.bottom,
  this.positionedWidth,
  this.positionedHeight,
});