battery_plus_macos library Null safety