StoredCacao.fromCacao constructor

StoredCacao.fromCacao({
  1. required int id,
  2. required String pairingTopic,
  3. required Cacao cacao,
})

Implementation

factory StoredCacao.fromCacao({
  required int id,
  required String pairingTopic,
  required Cacao cacao,
}) {
  return StoredCacao(
    id: id,
    pairingTopic: pairingTopic,
    h: cacao.h,
    p: cacao.p,
    s: cacao.s,
  );
}