import 'package:flutter/material.dart';
import 'package:test_sa/models/base.dart';
class NullableLoadingProvider extends LoadingListNotifier {
@override
Future getDate() {
return Future.value();
}
}
abstract class LoadingListNotifier extends ChangeNotifier {
int stateCode;
List items = [];
bool _loading = false;
bool get loading => _loading;
set loading(bool value) {
_loading = value;
notifyListeners();
}
void reset() {
items = null;
_loading = null;
stateCode = null;
}
Future getDate();
}