Fix a type error in platform_channel_swift example (#17354)

This commit is contained in:
Chris Bracken 2018-05-07 13:10:49 -07:00 committed by GitHub
parent 52e4605677
commit b23d7027b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,7 +47,7 @@ class _PlatformChannelState extends State<PlatformChannel> {
});
}
void _onError(PlatformException error) {
void _onError(Object error) {
setState(() {
_chargingStatus = 'Battery status: unknown.';
});