saveSeconds method

  1. @override
Future<void> saveSeconds(
  1. int seconds
)
override

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);
}