]> git.proxmox.com Git - flutter/proxmox_login_manager.git/commit - lib/extension.dart
migrate to sound null safety
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 12 Mar 2021 14:12:26 +0000 (15:12 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 12 Mar 2021 14:12:29 +0000 (15:12 +0100)
commita9d1ee22231c86c774ea40686f82324bb0f59795
treeaa5281f290b3f7fc52adf7e8823eb97427c58a46
parente7980778719b139d3326a2116d1f5522d109fa1b
migrate to sound null safety

tried to strike a balance between auto migration and checking what
can actually get null, or improve that by promoting some variables.

Learnt that for class fields dart cannot promote nullable fields to
null-safe after a if (field == null) return 'early'; check, so we
need to introduce a intermediate varibable and check on that - a bit
of a bummer..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
lib/extension.dart
lib/proxmox_general_settings_form.dart
lib/proxmox_general_settings_model.dart
lib/proxmox_login_form.dart
lib/proxmox_login_model.dart
lib/proxmox_login_selector.dart
lib/proxmox_tfa_form.dart
pubspec.yaml