A theoretical model for the time varying current in organic electrochemical transistors in a dynamic regime