Add type annotations

This commit is contained in:
Michael Pfaff 2020-06-09 15:58:18 -04:00
parent 76066ac9eb
commit 0b68d21e69
Signed by: michael
GPG Key ID: E53B118B12B5C7F9
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class UnityWidgetController {
/// Returns true once Unity is ready.
Future<bool> createUnity() => channel.invokeMethod('createUnity');
Future<bool> postMessage(String gameObject, methodName, message) => channel.invokeMethod('postMessage', <String, dynamic>{
Future<bool> postMessage(String gameObject, String methodName, String message) => channel.invokeMethod('postMessage', <String, dynamic>{
'gameObject': gameObject,
'methodName': methodName,
'message': message,