ReactiveModel<T>.create constructor

ReactiveModel<T>.create({
  1. required Object? creator(),
  2. T? initialState,
  3. bool? autoDisposeWhenNotUsed,
})

Create a ReactiveModel

Implementation

factory ReactiveModel.create({
  required Object? Function() creator,
  T? initialState,
  bool? autoDisposeWhenNotUsed,
}) {
  return ReactiveModelImp<T>(
    creator: creator,
    initialState: initialState,
    autoDisposeWhenNotUsed: autoDisposeWhenNotUsed ?? true,
    stateInterceptorGlobal: null,
  );
}