mirror of
https://github.com/flutter/flutter
synced 2024-10-13 11:42:54 +00:00
Fix a type error in platform_channel_swift example (#17354)
This commit is contained in:
parent
52e4605677
commit
b23d7027b5
|
@ -47,7 +47,7 @@ class _PlatformChannelState extends State<PlatformChannel> {
|
|||
});
|
||||
}
|
||||
|
||||
void _onError(PlatformException error) {
|
||||
void _onError(Object error) {
|
||||
setState(() {
|
||||
_chargingStatus = 'Battery status: unknown.';
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue