If you have many StateNotifier subclasses, using try/catch can be tedious. With AsyncValue.guard you get the same result with less boilerplate. https://codewithandrea.com/tips/async-value-guard-try-catch/
Autentifică-te pentru a adăuga comentarii
Alte posturi din acest grup

Apps created with Flutter 3.29 use the new Gradle Kotlin DSL on Android. Some CLI tools don't support the new syntax, yet. https://codewithandrea.com/tips/gradle-kotlin-dsl/

Pub.dev has a new chart that lets you see package download counts by version (major, minor, patch). Here's where to find it. https://codewithandrea.com/tips/flutter-run-route/

A real-world case study about ephemeral vs application state, navigation, scroll controllers, and how refactoring can help you ship new features smoothly. https://codewithandrea.com/articles/why-refac

Pub.dev has a new chart that lets you see package download counts by version (major, minor, patch). Here's where to find it. https://codewithandrea.com/tips/download-counts-by-version/

By registering a ValueNotifier listener, you can perform side effects such as updating controllers, showing dialogs, and performing navigation. https://codewithandrea.com/tips/side-effects-value-notif

Also included: Flutter rendering changes, discontinued official packages, Dart macros update, new Flutter UI challenges from Code with Andrea. https://codewithandrea.com/newsletter/february-2025/

Since Dart 3.7, the _ character is a wildcard variable and you can use it more than once in your code, without causing name collisions. https://codewithandrea.com/tips/wildcard-variables-dart-3-7/