Skip to content

Commit

Permalink
There is no need to check if it's null because it's on init state
Browse files Browse the repository at this point in the history
  • Loading branch information
WinXaito committed Mar 29, 2023
1 parent de98ce3 commit 2c872e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/controls/form/password_box.dart
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class _PasswordBoxState extends State<PasswordBox> {
@override
void initState() {
if (widget.focusNode == null) {
_internalNode ??= FocusNode(debugLabel: '${widget.runtimeType}');
_internalNode = FocusNode(debugLabel: '${widget.runtimeType}');
}
if (widget.controller == null) {
_internalController = TextEditingController();
Expand Down

0 comments on commit 2c872e0

Please sign in to comment.