Prepare dartCode class for network and scanner