flutter-riverpod-snippets icon indicating copy to clipboard operation
flutter-riverpod-snippets copied to clipboard

Change type from `FutureOr` to `Future`

Open utamori opened this issue 11 months ago • 0 comments

Description

This pull request updates the generated code type in the snippets from FutureOr to Future to align with the changes in the official Riverpod documentation.

Motivation

The official Riverpod documentation has been updated to use Future instead of FutureOr for asynchronous providers. To maintain consistency and avoid confusion, it is important to update the snippets in this extension to match the current best practices recommended by the Riverpod team.

Changes

Modified the snippets to generate code with Future return type instead of FutureOr.

utamori avatar Apr 01 '24 08:04 utamori