OTPTextField
OTPTextField copied to clipboard
bugfix: Issue #12
Null check operator used on a null value iamvivekkaushik/OTPTextField#12
File: lib/otp_field.dart
on line 183
and line 229
- widget.onChanged!(currentPin);
+ var onChanged = widget.onChanged;
+ if(onChanged != null) {
+ onChanged(currentPin);
+ }
on line 179
and line 225
- widget.onCompleted!(currentPin);
+ var onCompleted = widget.onCompleted;
+ if(onCompleted != null) {
+ onCompleted(currentPin);
+ }
Hello, this update is not available in the latest version 1.1.1 from pub.dev
Yes, I created the pull request, but I guess the author is not active in this repo.