StateValue<T> constructor
StateValue<T> (
- String key,
- T initialValue
Implementation
factory StateValue(String key, T initialValue) {
throw UnsupportedError(
'Direct instantiation of StateValue is not allowed.\n'
'Please use the take<T>() function to create StateValue instances.\n'
'Example usage:\n'
' final myIntState = take<int>(0);\n'
' final myStringState = take<String>("");\n'
' final myCustomObjectState = take<MyCustomObject>(MyCustomObject());\n'
'For more information, contact the library maintainer.');
}