mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix strong mode error in platform_channel/main.dart (#15624)
* Fix strong mode error in platform_channel/main.dart * Addres code review comments.
This commit is contained in:
parent
6d5810eced
commit
8379927985
@ -47,7 +47,7 @@ class _PlatformChannelState extends State<PlatformChannel> {
|
||||
});
|
||||
}
|
||||
|
||||
void _onError(PlatformException error) {
|
||||
void _onError(Object error) {
|
||||
setState(() {
|
||||
_chargingStatus = 'Battery status: unknown.';
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user