Skip to content

Commit

Permalink
dart format lib/
Browse files Browse the repository at this point in the history
  • Loading branch information
jasikpark committed Feb 13, 2025
1 parent 50ebd9b commit 317c607
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 1 addition & 4 deletions lib/components/IPAndPortFormField.dart
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,7 @@ class _IPAndPortFormField extends FormFieldState<IPAndPort> {
@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) {
Expand Down
4 changes: 1 addition & 3 deletions lib/models/Certificate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, dynamic> json)
: cert = Certificate.fromJson(json['Cert']),
Expand Down

0 comments on commit 317c607

Please sign in to comment.