how to remove spaces from a string flutter code example Example: remove space from string dart String name = "COCA COLA"; print(name.replaceAll(' ', ''))