setLastIndexPos method
Future<void>
setLastIndexPos(
{ - required int? lastIndex,
- required int lastPos,
})
override
Implementation
@override
Future<void> setLastIndexPos({required int? lastIndex, required int lastPos}) async {
AppConfig.logger.d("Setting last time notification were checked");
try {
final playerBox = await getBox(AppHiveBox.player.name);
await playerBox.put(AppHiveConstants.lastIndex, lastIndex);
await playerBox.put(AppHiveConstants.lastPos, lastPos);
} catch (e) {
AppConfig.logger.e(e.toString());
}
}