LiveData<T> constructor

LiveData<T>(
  1. T initValue, {
  2. String? name,
  3. bool verifyDataChange = false,
  4. StreamController<T>? streamController,
  5. LifeCycleOwner? owner,
  6. Logger? logger,
})

Implementation

LiveData(
    T initValue, {
      this.name,
      this.verifyDataChange = false,
      StreamController<T>? streamController,
      LifeCycleOwner? owner,
      leisim.Logger? logger,
    })  : initialValue = initValue,
      _currentValue = initValue {
  this.logger = logger ?? Logger.instance;
  this.streamController = streamController ?? StreamController<T>.broadcast();
  if (owner != null) {
    this.owner(owner);
  }
}