callComponentMethod method
Call a method on a specific component instance
Implementation
@override
Future<dynamic> callComponentMethod(
String viewId, String methodName, Map<String, dynamic> args) async {
try {
return await bridgeChannel.invokeMethod('callComponentMethod', {
'viewId': viewId,
'methodName': methodName,
'args': args,
});
} catch (e) {
debugPrint('Error calling component method $methodName on $viewId: $e');
return null;
}
}