setData method
Binds provided value
with key
. Value object must be json-encodable.
Implementation
NovelStateSnapshot setData(String key, Object value) {
final copy = Map<String, dynamic>.from(variables);
copy[key] = value;
return copyWith(variables: copy);
}