forked from Nexus/nexus
Now this feature is stable, we should use it. I might have missed some usecases, but these can be added in future commits.
11 lines
323 B
Dart
11 lines
323 B
Dart
import "package:cross_cache/cross_cache.dart";
|
|
import "package:flutter_riverpod/flutter_riverpod.dart";
|
|
|
|
class CrossCacheController extends Notifier<CrossCache> {
|
|
@override
|
|
CrossCache build() => .new();
|
|
|
|
static final provider = NotifierProvider<CrossCacheController, CrossCache>(
|
|
CrossCacheController.new,
|
|
);
|
|
}
|