globalState<T> function
Creates a GlobalStateProviderComponent.
See also State for more details.
The state can be accessed using
ComponentContext.globalState with the according
name and type T.
Implementation
DeactNode globalState<T>({Object? key, required String name, T? initialValue, required Iterable<DeactNode> children}) {
return GlobalStateProviderComponent<T>._(key, name, initialValue, children);
}