SmartContainer constructor

const SmartContainer({
  1. Key? key,
  2. bool? visible = true,
  3. BoxConstraints? constraints,
  4. bool userClip = false,
  5. AlignmentGeometry? alignment,
  6. GestureTapCallback? onTap,
  7. GestureLongPressCallback? onLongPress,
  8. bool isCircle = false,
  9. double borderWidth = 0,
  10. Color? backgroundColor,
  11. Widget? child,
  12. EdgeInsetsGeometry? padding = EdgeInsets.zero,
  13. Color borderColor = Colors.transparent,
  14. EdgeInsetsGeometry? margin,
  15. BorderRadius? borderRadius,
  16. double? height,
  17. double? width,
  18. HitTestBehavior behavior = HitTestBehavior.opaque,
  19. List<BoxShadow>? boxShadow,
  20. Widget replacement = const SizedBox.shrink(),
  21. bool hasSizeWhenUnVisible = false,
  22. double? radius,
  23. double? verRadius,
  24. double? topRadius,
  25. double? topRightRadius,
  26. double? topLeftRadius,
  27. double? bottomLeftRadius,
  28. double? bottomRightRadius,
  29. double? bottomRadius,
  30. double? horRadius,
  31. double? leftRadius,
  32. double? rightRadius,
  33. DecorationImage? image,
  34. bool useSafeArea = false,
  35. Gradient? gradient,
  36. bool isSquare = false,
  37. BoxBorder? border,
  38. Duration? debounceTapDuration,
})

Implementation

const SmartContainer(
    {Key? key,
    this.visible = true,
    this.constraints,
    this.userClip = false,
    this.alignment,
    this.onTap,
    this.onLongPress,
    this.isCircle = false,
    this.borderWidth = 0,
    this.backgroundColor,
    this.child,
    this.padding = EdgeInsets.zero,
    this.borderColor = Colors.transparent,
    this.margin,
    this.borderRadius,
    this.height,
    this.width,
    this.behavior = HitTestBehavior.opaque,
    this.boxShadow,
    this.replacement = const SizedBox.shrink(),
    this.hasSizeWhenUnVisible = false,
    this.radius,
    this.verRadius,
    this.topRadius,
    this.topRightRadius,
    this.topLeftRadius,
    this.bottomLeftRadius,
    this.bottomRightRadius,
    this.bottomRadius,
    this.horRadius,
    this.leftRadius,
    this.rightRadius,
    this.image,
    this.useSafeArea = false,
    this.gradient,
    this.isSquare = false,
    this.border,
    this.debounceTapDuration})
    : super(key: key);