renderAcceptance method

void renderAcceptance(
  1. String? acceptance
)

Implementation

void renderAcceptance(String? acceptance) {
  if (acceptance != null) {
    _expectedPlaceholder('accept', State.acceptPlaceholder, acceptance);
    source = source.replaceAll(State.acceptPlaceholder, acceptance);
    source = source.replaceAll('{{0}}', result);
  } else {
    _unexpectedPlaceholder('accept', State.acceptPlaceholder);
  }
}