updateSearchText method
Updates the search text programmatically.
Implementation
Future<void> updateSearchText(String text) async {
try {
await platform.invokeMethod('updateSearchText', {
'text': text,
});
} catch (e) {
print('Error updating search text: $e');
}
}