forked from firka/flutter
Fix a type error in platform_channel_swift example (#17354)
This commit is contained in:
@@ -47,7 +47,7 @@ class _PlatformChannelState extends State<PlatformChannel> {
|
||||
});
|
||||
}
|
||||
|
||||
void _onError(PlatformException error) {
|
||||
void _onError(Object error) {
|
||||
setState(() {
|
||||
_chargingStatus = 'Battery status: unknown.';
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user