setLastActiveUserDeviceKey method

  1. @override
Future<void> setLastActiveUserDeviceKey(
  1. int lastActive,
  2. String userId,
  3. String deviceId
)
override

Implementation

@override
Future<void> setLastActiveUserDeviceKey(
    int lastActive, String userId, String deviceId) async {
  final raw =
      await _userDeviceKeysBox.get(MultiKey(userId, deviceId).toString());
  raw['last_active'] = lastActive;
  await _userDeviceKeysBox.put(
    MultiKey(userId, deviceId).toString(),
    raw,
  );
}