mirrored_repositories/Food_Lab/lib
import 'dart:collection';
import 'package:flutter/foundation.dart';
import 'package:foodlab/model/food.dart';

class FoodNotifier with ChangeNotifier {
  List<Food> _foodList = [];

  UnmodifiableListView<Food> get foodList {
    return UnmodifiableListView(_foodList);
  }

  set foodList(List<Food> foodList) {
    _foodList = foodList;
    notifyListeners();
  }
}
