]> git.proxmox.com Git - flutter/proxmox_login_manager.git/commitdiff
tree wide: avoid unnecessary this
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 9 Apr 2024 05:16:49 +0000 (07:16 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 9 Apr 2024 06:15:26 +0000 (08:15 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
lib/extension.dart
lib/proxmox_login_form.dart

index 2915bf67bfb5caf9fb94eb09b05166eca3e98a44..d89fff2057ca94d0538e583797ee6d5afcacdce3 100644 (file)
@@ -4,7 +4,7 @@ import 'package:built_value/built_value.dart';
 extension BuiltValueListBuilderExtension<V extends Built<V, B>,
     B extends Builder<V, B>> on ListBuilder<Built<V, B>> {
   void rebuildWhere(bool Function(V) test, void Function(B) updates) {
-    for (var i = 0; i != this.length; ++i) {
+    for (var i = 0; i != length; ++i) {
       if (test(this[i] as V)) this[i] = this[i].rebuild(updates);
     }
   }
index e4d1275a01b52096ce31ca22f53c807cdf68b3b3..e7ed279a31e6198bf8a8c4fb5359b73aab8ea85a 100644 (file)
@@ -727,7 +727,7 @@ class ConnectionErrorDialog extends StatelessWidget {
   Widget build(BuildContext context) {
     return AlertDialog(
       title: const Text('Connection error'),
-      content: Text('Could not establish connection: ${this.exception}'),
+      content: Text('Could not establish connection: $exception'),
       actions: [
         TextButton(
           onPressed: () => Navigator.of(context).pop(),