Add dart api impl for client side