buildHandle method

  1. @override
Widget buildHandle(
  1. BuildContext context,
  2. TextSelectionHandleType type,
  3. double textLineHeight, [
  4. VoidCallback? onTap,
])
override

Platform-aware handle building

Implementation

@override
Widget buildHandle(
  BuildContext context,
  TextSelectionHandleType type,
  double textLineHeight, [
  VoidCallback? onTap,
]) {
  if (customHandleWidget == null) {
    return const SizedBox.shrink();
  }

  if (Platform.isAndroid) {
    return _buildAndroidHandle(context, type, textLineHeight, onTap);
  } else {
    return _buildDefaultHandle(context, type, textLineHeight, onTap);
  }
}