flutter_service/lib/provider/CategoryProvider.dart
2021-03-01 22:16:41 +07:00

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(){
}
}