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:
@@ -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