dart fix --apply --code=unnecessary_null_in_if_null_operators

This commit is contained in:
Caleb Jasik 2025-02-13 11:17:06 -06:00
parent 45f3af5646
commit 20961b2ea0
No known key found for this signature in database

View file

@ -113,7 +113,7 @@ class _IPAndPortFormField extends FormFieldState<IPAndPort> {
super.didUpdateWidget(oldWidget); super.didUpdateWidget(oldWidget);
var update = IPAndPort( var update = IPAndPort(
ip: widget.ipController?.text, ip: widget.ipController?.text,
port: int.tryParse(widget.portController?.text ?? "") ?? null, port: int.tryParse(widget.portController?.text ?? ""),
); );
bool shouldUpdate = false; bool shouldUpdate = false;