If all occurrences of 2 or more dots should be replaced, you could use replaceAll with a pattern .{2,}
to match 2 or more dots and replace with a single dot.
String stripDots(String string){
return string.replaceAll(RegExp(r'.{2,}'), '.');
}
String text = "abc.... Def..";
print(stripDots(text));
Output
abc. Def.
Dart demo
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…