diff --git a/lib/components/IPAndPortFormField.dart b/lib/components/IPAndPortFormField.dart index e10942e..27e925a 100644 --- a/lib/components/IPAndPortFormField.dart +++ b/lib/components/IPAndPortFormField.dart @@ -111,10 +111,7 @@ class _IPAndPortFormField extends FormFieldState { @override void didUpdateWidget(IPAndPortFormField oldWidget) { super.didUpdateWidget(oldWidget); - var update = IPAndPort( - ip: widget.ipController?.text, - port: int.tryParse(widget.portController?.text ?? ""), - ); + var update = IPAndPort(ip: widget.ipController?.text, port: int.tryParse(widget.portController?.text ?? "")); bool shouldUpdate = false; if (widget.ipController != oldWidget.ipController) { diff --git a/lib/models/Certificate.dart b/lib/models/Certificate.dart index 134d3c8..61571b0 100644 --- a/lib/models/Certificate.dart +++ b/lib/models/Certificate.dart @@ -3,9 +3,7 @@ class CertificateInfo { String? rawCert; CertificateValidity? validity; - CertificateInfo.debug({this.rawCert = ""}) - : cert = Certificate.debug(), - validity = CertificateValidity.debug(); + CertificateInfo.debug({this.rawCert = ""}) : cert = Certificate.debug(), validity = CertificateValidity.debug(); CertificateInfo.fromJson(Map json) : cert = Certificate.fromJson(json['Cert']),