invoke<T> method
Implementation
Future<T?> invoke<T>(
String method, {
Map<String, dynamic> data = const {},
bool withPerformanceTracing = false,
}) async {
try {
final response = await _platform.invokeMethod<T>(method, data);
return response;
} catch (e, stackTrace) {
log('Handover $method failed $e $stackTrace');
rethrow;
}
}