Catalysis of the reaction: electron-transferring flavoprotein + H2O + dimethylamine = reduced electron-transferring flavoprotein + formaldehyde + methylamine.
dimethylamine:electron-transferring flavoprotein oxidoreductase activity