ValueModel<T> constructor

ValueModel<T>(
  1. T value
)

Model which only stores one value.

It can be used in the same way as ValueNotifier.

You can also use toString() to convert it to a Stream.

Implementation

ValueModel(T value)
    : _value = value,
      super();