diff --git a/lib/hooks.dart b/lib/hooks.dart index a6b3b94b..5a0a295d 100644 --- a/lib/hooks.dart +++ b/lib/hooks.dart @@ -23,6 +23,9 @@ class StateHook { final T _value; /// The second item in the pair returned by [React.useState]. + /// + /// This has a type of `dynamic` since it accepts either the value `T`, + /// or an updater function `T Function(T)`. final void Function(dynamic) _setValue; StateHook._(this._value, this._setValue);