put<T> method

void put<T>(
  1. T value
)

Implementation

void put<T>(T value) {
  final listenable = Provided.find<ValueNotifier<T>>(this) ??
      Provided.find<ValueNotifier<T?>>(this);
  assert(listenable != null, "No ValueNotifier could be found");
  listenable!.value = value;
}