mirror of
https://github.com/DefinedNet/mobile_nebula.git
synced 2025-02-22 19:15:27 +00:00
dart format lib/
This commit is contained in:
parent
8d7c1df1bc
commit
a2f61a8368
2 changed files with 2 additions and 7 deletions
|
@ -111,10 +111,7 @@ class _IPAndPortFormField extends FormFieldState<IPAndPort> {
|
||||||
@override
|
@override
|
||||||
void didUpdateWidget(IPAndPortFormField oldWidget) {
|
void didUpdateWidget(IPAndPortFormField oldWidget) {
|
||||||
super.didUpdateWidget(oldWidget);
|
super.didUpdateWidget(oldWidget);
|
||||||
var update = IPAndPort(
|
var update = IPAndPort(ip: widget.ipController?.text, port: int.tryParse(widget.portController?.text ?? ""));
|
||||||
ip: widget.ipController?.text,
|
|
||||||
port: int.tryParse(widget.portController?.text ?? ""),
|
|
||||||
);
|
|
||||||
bool shouldUpdate = false;
|
bool shouldUpdate = false;
|
||||||
|
|
||||||
if (widget.ipController != oldWidget.ipController) {
|
if (widget.ipController != oldWidget.ipController) {
|
||||||
|
|
|
@ -3,9 +3,7 @@ class CertificateInfo {
|
||||||
String? rawCert;
|
String? rawCert;
|
||||||
CertificateValidity? validity;
|
CertificateValidity? validity;
|
||||||
|
|
||||||
CertificateInfo.debug({this.rawCert = ""})
|
CertificateInfo.debug({this.rawCert = ""}) : cert = Certificate.debug(), validity = CertificateValidity.debug();
|
||||||
: cert = Certificate.debug(),
|
|
||||||
validity = CertificateValidity.debug();
|
|
||||||
|
|
||||||
CertificateInfo.fromJson(Map<String, dynamic> json)
|
CertificateInfo.fromJson(Map<String, dynamic> json)
|
||||||
: cert = Certificate.fromJson(json['Cert']),
|
: cert = Certificate.fromJson(json['Cert']),
|
||||||
|
|
Loading…
Reference in a new issue