SuperText constructor

const SuperText(
  1. String text, {
  2. Key? key,
  3. ChildPosition childPosition = ChildPosition.left,
  4. Widget? child,
  5. double childSpace = 0,
  6. TextStyle? style,
  7. double? width,
  8. double? height,
  9. EdgeInsetsGeometry padding = const EdgeInsets.all(0),
  10. EdgeInsetsGeometry margin = const EdgeInsets.all(0),
  11. Color? bgColor,
  12. AlignmentGeometry? align,
  13. BorderRadiusGeometry? borderRadius,
  14. Gradient? gradient,
  15. BoxBorder? border,
  16. VoidCallback? onTap,
  17. VoidCallback? onLongPress,
  18. bool hasInkWell = false,
  19. bool spaceBetween = false,
  20. double shadow = 0,
  21. double? radius,
  22. BoxConstraints? constraints,
  23. Color? borderColor,
  24. double borderWidth = 0.0,
  25. bool disabled = false,
  26. bool expand = false,
})

Implementation

const SuperText(this.text,
    {super.key,
    this.childPosition = ChildPosition.left,
    this.child,
    this.childSpace = 0,
    this.style,
    this.width,
    this.height,
    this.padding = const EdgeInsets.all(0),
    this.margin = const EdgeInsets.all(0),
    this.bgColor,
    this.align,
    this.borderRadius,
    this.gradient,
    this.border,
    this.onTap,
    this.onLongPress,
    this.hasInkWell = false,
    this.spaceBetween = false,
    this.shadow = 0,
    this.radius,
    this.constraints,
    this.borderColor,
    this.borderWidth = 0.0,
    this.disabled = false,
    this.expand = false});