handleTap method

  1. @override
Future<void> handleTap(
  1. BuildContext context
)
override

Handles the tap event when the button is pressed.

Implementation

@override
Future<void> handleTap(BuildContext context) async {
  if (isEnabled && valueText.isNotEmpty) {
    await Clipboard.setData(ClipboardData(text: valueText));

    if (showNotification && context.mounted) {
      FastNotificationCenter.info(context, message ?? _getDefaultValueText());
    }

    onTap?.call();
  }
}