mirror of
https://github.com/rrousselGit/riverpod.git
synced 2025-08-15 10:11:27 +08:00
12 lines
270 B
Dart
12 lines
270 B
Dart
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
|
|
|
part 'codegen.g.dart';
|
|
|
|
/* SNIPPET START */
|
|
// {@template provider}
|
|
// An eagerly initialized provider.
|
|
// {@endtemplate}
|
|
@riverpod
|
|
Future<String> example(Ref ref) async => 'Hello world';
|
|
/* SNIPPET END */
|