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