This commit is contained in:
Henry Hiles 2025-12-07 16:31:03 -05:00
commit 63a9d2d169
No known key found for this signature in database
15 changed files with 388 additions and 299 deletions

View file

@ -20,17 +20,15 @@ final class Logger extends ProviderObserver {
ProviderObserverContext context,
Object? previousValue,
Object? newValue,
) {
print('''{
"provider": "${context.provider}",
"changed": ${previousValue != newValue}
"type": ${previousValue.runtimeType}
}''');
}
) => debugPrint("""
Time: ${DateTime.now().toIso8601String()}
Provider: ${context.provider}
Previous Value: ${previousValue is AsyncData ? previousValue.value : previousValue}
New Value: ${newValue is AsyncData ? newValue.value : newValue}
}""");
}
void showError(Object error, [StackTrace? stackTrace]) {
if (error.toString().contains("ParentDataWidget")) return;
if (error.toString().contains("DioException")) return;
if (error.toString().contains("UTF-16")) return;