[macOS] Battery check in platform_channel sample (#123354)
Adds a check for the case where a device has no battery present. The devicelab test expects the text "No battery." in the case where a device has no battery. This is triggered by returning an error with a NO_BATTERY error code. Also applies some cosmetic fixes: * Amends a copyright notice to Flutter instead of com.example * Deletes an unused test. Issue: https://github.com/flutter/flutter/issues/79204
Showing
Please register or sign in to comment