removeSuffix method

String removeSuffix(
  1. String value,
  2. String suffix
)

Implementation

String removeSuffix(String value, String suffix) {
  return value.substring(0, value.length - suffix.length);
}