toClickableLabel method

Widget toClickableLabel({
  1. dynamic onTap(
    1. dynamic
    )?,
  2. VoidCallback? onLongPress,
  3. VoidCallback? onDoubleTap,
  4. TextStyle? style,
  5. Color? textcolor,
  6. String? format,
  7. bool? showRipple,
  8. Color? rippleColor,
  9. bool isIcon = false,
  10. double? iconSize,
  11. int? maxLines,
  12. TextOverflow? overflow,
})

Implementation

Widget toClickableLabel({
  Function(dynamic)? onTap,
  VoidCallback? onLongPress,
  VoidCallback? onDoubleTap,
  TextStyle? style,
  Color? textcolor,
  String? format,
  bool? showRipple,
  Color? rippleColor,
  bool isIcon = false,
  double? iconSize,
  int? maxLines, // ✅ Thêm vào extension
  TextOverflow? overflow,
}) {
  return CyberLabel(
    text: this,
    onLeaver: onTap,
    style: style,
    textcolor: textcolor,
    format: format,
    showRipple: showRipple,
    rippleColor: rippleColor,
    isIcon: isIcon,
    iconSize: iconSize,
    maxLines: maxLines,
    overflow: overflow,
  );
}