reset method
void
reset()
Reset state (for testing)
Implementation
void reset() {
try {
final lib = PlatformLoader.loadCommons();
final resetState = lib.lookupFunction<Void Function(), void Function()>(
'rac_state_reset',
);
resetState();
// Also reset the auth manager so state/auth stay in sync.
try {
final resetAuth = lib.lookupFunction<Void Function(), void Function()>(
'rac_auth_reset',
);
resetAuth();
} catch (_) {
// rac_auth_reset may not be linked yet; ignore.
}
} catch (_) {
_logger.debug('rac_state_reset not available');
}
}