saveSeconds method
Writes the provided seconds to the device's persistent storage
using the assigned key.
Implementation
@override
Future<void> saveSeconds(int seconds) async {
final prefs = await SharedPreferences.getInstance();
await prefs.setInt(key, seconds);
}