Removes the pattern from the end of the String.
pattern
String
String s = "coolboy".removeLastEqual("y"); // returns "coolbo";
String removeLastEqual(String? pattern) => removeLastAny([pattern]);