valorTotalDividaAtiva property

double get valorTotalDividaAtiva

Retorna o valor total em dívida ativa

Implementation

double get valorTotalDividaAtiva {
  final debitos = debitosDividaAtiva;
  if (debitos == null) return 0.0;
  return debitos.fold(0.0, (total, debito) => total + debito.valor);
}