removeLastEqual method

String removeLastEqual(
  1. String? pattern
)

Removes the pattern from the end of the String.

Example

String s = "coolboy".removeLastEqual("y"); // returns "coolbo";

Implementation

String removeLastEqual(String? pattern) => removeLastAny([pattern]);