
import 'package:flutter/material.dart';
import 'package:hmg_nurses/classes/enums.dart';

class BaseViewModel extends ChangeNotifier {

  ViewState _state = ViewState.idle;
  bool isInternetConnection = true;

  ViewState get state => _state;

  String error = "";

  //TODO add the user login model when we need it

  void setState(ViewState viewState) {
    _state = viewState;

    notifyListeners();
  }

}
