updateCurrentDevice method
void
updateCurrentDevice()
Updates the locally known information about the current device.
You should never have to call this manually, except if you getting null
in SealdAccountInfo.deviceExpires,
which can happen if migrating from an older version of the SDK,
or if the internal call to SealdSdk.updateCurrentDevice failed when calling SealdSdk.importIdentity.
Implementation
void updateCurrentDevice() {
if (_closed) {
throw SealdException(
code: "INSTANCE_CLOSED",
id: "FLUTTER_INSTANCE_CLOSED",
description: "Instance already closed.");
}
final Pointer<Pointer<NativeSealdError>> err =
calloc<Pointer<NativeSealdError>>();
final int resultCode =
_bindings.SealdSdk_UpdateCurrentDevice(_ptr.pointer(), err);
if (resultCode != 0) {
throw SealdException._fromCPtr(err);
} else {
calloc.free(err);
}
}