RxModel<T> constructor

RxModel<T>({
  1. required Future<T> source(),
  2. required T defaultValue,
  3. bool isAutoStart = true,
})

Implementation

RxModel({
  required this.source,
  required T defaultValue,
  this.isAutoStart = true,
}) : super(defaultValue) {
  if (isAutoStart) {
    fetch();
  }
}