repository/stock.dart

flutter-pos-system · lib/models/repository/stock.dart · dart · Apache-2.0
pos

Manages stock items, applying amounts and orders in a Flutter POS system.

// Source: https://github.com/evan361425/flutter-pos-system | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
import 'package:collection/collection.dart';
import 'package:flutter/material.dart';
import 'package:possystem/models/objects/order_object.dart';
import 'package:possystem/models/objects/stock_object.dart';
import 'package:possystem/models/stock/ingredient.dart';
import 'package:possystem/services/storage.dart';

import '../repository.dart';

class Stock extends ChangeNotifier
    with Repository<Ingredient>, RepositoryStorage<Ingredient>, RepositorySearchable<Ingredient> {
  static late Stock instance;

  @override
  final Stores storageStore = .stock;

  Stock() {
    inst

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key