UImage constructor

const UImage(
  1. String source, {
  2. Key? key,
  3. UFileData? fileData,
  4. Color? color,
  5. double? width,
  6. double? height,
  7. String? placeholder,
  8. BoxFit fit = BoxFit.contain,
  9. double borderRadius = 0,
  10. String? package,
  11. BoxShape shape = BoxShape.rectangle,
  12. BoxBorder? border,
  13. List<BoxShadow>? boxShadow,
  14. Gradient? gradient,
  15. Color? backgroundColor,
  16. EdgeInsetsGeometry? padding,
  17. EdgeInsetsGeometry? margin,
  18. GestureTapCallback? onTap,
  19. GestureLongPressCallback? onLongPress,
  20. GestureTapCallback? onDoubleTap,
  21. bool splash = false,
  22. double? pressedScale,
  23. double? opacity,
  24. String? heroTag,
  25. String? tooltip,
  26. String? semanticsLabel,
  27. bool? semanticsButton,
  28. bool visible = true,
  29. double? minWidth,
  30. double? maxWidth,
  31. double? minHeight,
  32. double? maxHeight,
  33. AlignmentGeometry? alignment,
  34. VoidCallback? onPress,
  35. GestureTapDownCallback? onTapDown,
  36. GestureTapUpCallback? onTapUp,
  37. GestureTapCancelCallback? onTapCancel,
  38. GestureTapCallback? onSecondaryTap,
  39. HitTestBehavior? hitTestBehavior,
  40. Color? splashColor,
  41. Color? highlightColor,
  42. Color? hoverColor,
  43. MouseCursor? cursor,
  44. ValueChanged<bool>? onHover,
  45. double? scale,
  46. double? rotate,
  47. Offset? translate,
  48. bool center = false,
  49. bool safeArea = false,
  50. int? expanded,
  51. int? flexible,
  52. bool positioned = false,
  53. double? left,
  54. double? top,
  55. double? right,
  56. double? bottom,
  57. double? positionedWidth,
  58. double? positionedHeight,
})

Implementation

const UImage(
  this.source, {
  super.key,
  this.fileData,
  this.color,
  this.width,
  this.height,
  this.placeholder,
  this.fit = BoxFit.contain,
  this.borderRadius = 0,
  this.package,
  this.shape = BoxShape.rectangle,
  this.border,
  this.boxShadow,
  this.gradient,
  this.backgroundColor,
  this.padding,
  this.margin,
  this.onTap,
  this.onLongPress,
  this.onDoubleTap,
  this.splash = false,
  this.pressedScale,
  this.opacity,
  this.heroTag,
  this.tooltip,
  this.semanticsLabel,
  this.semanticsButton,
  this.visible = true,
  this.minWidth,
  this.maxWidth,
  this.minHeight,
  this.maxHeight,
  this.alignment,
  this.onPress,
  this.onTapDown,
  this.onTapUp,
  this.onTapCancel,
  this.onSecondaryTap,
  this.hitTestBehavior,
  this.splashColor,
  this.highlightColor,
  this.hoverColor,
  this.cursor,
  this.onHover,
  this.scale,
  this.rotate,
  this.translate,
  this.center = false,
  this.safeArea = false,
  this.expanded,
  this.flexible,
  this.positioned = false,
  this.left,
  this.top,
  this.right,
  this.bottom,
  this.positionedWidth,
  this.positionedHeight,
});