removeAll method

String removeAll(
  1. String value
)

Removes all characters.

var bestPackage = 'GetX'.removeAll('X');
print(bestPackage) // Get;

Implementation

String removeAll(String value) {
  var newValue = replaceAll(value, '');
  //this =  newValue;
  return newValue;
}