setData method

NovelStateSnapshot setData(
  1. String key,
  2. Object value
)

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);
}