UImageFile constructor

const UImageFile(
  1. File file, {
  2. Color? color,
  3. double? width,
  4. double? height,
  5. BoxFit fit = BoxFit.contain,
  6. GestureTapCallback? onTap,
  7. VoidCallback? onPress,
  8. GestureLongPressCallback? onLongPress,
  9. GestureTapCallback? onDoubleTap,
  10. bool splash = false,
  11. double? pressedScale,
  12. MouseCursor? cursor,
  13. ValueChanged<bool>? onHover,
  14. EdgeInsetsGeometry? margin,
  15. double? opacity,
  16. String? tooltip,
  17. String? heroTag,
  18. bool visible = true,
  19. double? scale,
  20. double? rotate,
  21. Offset? translate,
  22. bool center = false,
  23. bool safeArea = false,
  24. int? expanded,
  25. int? flexible,
  26. bool positioned = false,
  27. double? left,
  28. double? top,
  29. double? right,
  30. double? bottom,
  31. double? positionedWidth,
  32. double? positionedHeight,
  33. Key? key,
})

Implementation

const UImageFile(
  this.file, {
  this.color,
  this.width,
  this.height,
  this.fit = BoxFit.contain,
  this.onTap,
  this.onPress,
  this.onLongPress,
  this.onDoubleTap,
  this.splash = false,
  this.pressedScale,
  this.cursor,
  this.onHover,
  this.margin,
  this.opacity,
  this.tooltip,
  this.heroTag,
  this.visible = true,
  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,
  super.key,
});