25 lines
461 B
Dart
25 lines
461 B
Dart
|
|
||
|
|
||
|
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(){
|
||
|
|
||
|
}
|
||
|
}
|