Adds a type parameter to invokeMethod (and additional utility methods) (#26303)
This commit is contained in:
@@ -82,10 +82,10 @@ Future<void> main() async {
|
||||
await controller.tap(find.byTooltip('Back'));
|
||||
}
|
||||
print('Finished successfully!');
|
||||
_kTestChannel.invokeMethod('success');
|
||||
_kTestChannel.invokeMethod<void>('success');
|
||||
} catch (error, stack) {
|
||||
print('Caught error: $error\n$stack');
|
||||
_kTestChannel.invokeMethod('failure');
|
||||
_kTestChannel.invokeMethod<void>('failure');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user