You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
426 B
Dart
21 lines
426 B
Dart
import 'package:car_customer_app/utils/enums.dart';
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
class BaseVM extends ChangeNotifier {
|
|
ViewState _state = ViewState.idle;
|
|
bool isInternetConnection = true;
|
|
|
|
ViewState get state => _state;
|
|
|
|
String error = "";
|
|
|
|
void setOnlyState(ViewState viewState) {
|
|
_state = viewState;
|
|
}
|
|
|
|
void setState(ViewState viewState) {
|
|
_state = viewState;
|
|
notifyListeners();
|
|
}
|
|
}
|