stripResponse function

String stripResponse(
  1. String name
)

Implementation

String stripResponse(String name) =>
    name.endsWith(responseSuffix)
        ? name.substring(0, name.length - responseSuffix.length)
        : name;