Current approach for Scoping State? #192
-
The example at https://rearch.gsconrad.com/flutter/scoping-state shows (int, void Function()) scopedCount(WidgetHandle use, int startingCount) {
final (count, setCount) = use.state(startingCount);
return (count, () => setCount(count + 1));
} but currently WidgetHandle doesn't appear to have the |
Beta Was this translation helpful? Give feedback.
Answered by
GregoryConrad
May 31, 2024
Replies: 1 comment 1 reply
-
Those are defined as extension methods over in
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
GregoryConrad
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Those are defined as extension methods over in
rearch
; thus:import 'package:rearch/rearch.dart';