add project
This commit is contained in:
25
lib/provider/CategoryProvider.dart
Normal file
25
lib/provider/CategoryProvider.dart
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter_service/model/CategoryResponse.dart';
|
||||
|
||||
class CategoryProvider with ChangeNotifier {
|
||||
List<CategoryResponse> _categories = [];
|
||||
|
||||
void setCategories(List<CategoryResponse> value){
|
||||
_categories = value;
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
List<CategoryResponse> getCategories(){
|
||||
return _categories;
|
||||
}
|
||||
|
||||
void removeCategories(){
|
||||
|
||||
}
|
||||
|
||||
void appendCategories(){
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user