chore(mobile): use Record instead of custom pair+triple (#2483)

This commit is contained in:
Fynn Petersen-Frey
2023-05-21 03:41:34 +02:00
committed by GitHub
parent a089d9891d
commit dc7b0f75bb
6 changed files with 58 additions and 80 deletions

View File

@@ -364,7 +364,7 @@ class BackupControllerPage extends HookConsumerWidget {
.read(backgroundServiceProvider)
.getIOSBackgroundAppRefreshEnabled(),
builder: (context, snapshot) {
final enabled = snapshot.data as bool?;
final enabled = snapshot.data;
// If it's not enabled, show them some kind of alert that says
// background refresh is not enabled
if (enabled != null && !enabled) {}