I would to force the insertion of only values between 1-20. if user enter 2 it's okay but if user enter 1 after 2 (21) then Text Field will not allow to enter 1 after 2. Is there any RegExp for it.
I tried like this but it's only allow for numbers
inputFormatters: [FilteringTextInputFormatter.allow(RegExp('[1-9,.,:]'))],