inputDigitAndRememberPosition method

String inputDigitAndRememberPosition(
  1. String nextChar
)

Same as inputDigit, but remembers the position where nextChar is inserted, so that it can be retrieved later by using getRememberedPosition. The remembered position will be automatically adjusted if additional formatting characters are later inserted/removed in front of nextChar.

Implementation

String inputDigitAndRememberPosition(String nextChar) {
  _currentOutput = _inputDigitWithOptionToRememberPosition(nextChar, true);
  return _currentOutput;
}