mirrored_repositories/shopping_cart/lib
import 'package:get/get.dart';

import '../models/products_model.dart';
import '../services/firestore_db.dart';

class ProductController extends GetxController {
  // Add a list of Product objects.
  final products = <Product>[].obs;

  @override
  void onInit() {
    products.bindStream(FirestoreDB().getAllProducts());
    super.onInit();
  }
}
