buildHandle method
Widget
buildHandle(
- BuildContext context,
- TextSelectionHandleType type,
- double textLineHeight, [
- 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);
}
}