From 83799279851ebe8ca11d9cd8a6dba2fd48b52c28 Mon Sep 17 00:00:00 2001 From: Siva Date: Fri, 16 Mar 2018 16:21:33 -0700 Subject: [PATCH] Fix strong mode error in platform_channel/main.dart (#15624) * Fix strong mode error in platform_channel/main.dart * Addres code review comments. --- examples/platform_channel/lib/main.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/platform_channel/lib/main.dart b/examples/platform_channel/lib/main.dart index ffae0828e80..69c1f812056 100644 --- a/examples/platform_channel/lib/main.dart +++ b/examples/platform_channel/lib/main.dart @@ -47,7 +47,7 @@ class _PlatformChannelState extends State { }); } - void _onError(PlatformException error) { + void _onError(Object error) { setState(() { _chargingStatus = 'Battery status: unknown.'; });