setValue method Null safety

void setValue(
  1. T val
)

Alias for value setter. Good for passing to a Future or Stream.

Implementation

void setValue(T val) => value = val;