BaseStateNotifier<DataState> constructor

  1. @override
BaseStateNotifier<DataState>(
  1. Ref<Object?> ref
)

Implementation

@override
BaseStateNotifier(Ref ref) : super(ref, const BaseState.initial()) {
  initWithRefAndGetOrUpdateState(ref, ({newState}) {
    if (newState != null) state = newState;
    return state;
  });
}