sumOflovelace property

BigInt sumOflovelace
latefinal

Implementation

late final BigInt sumOflovelace = amount.fold(
    BigInt.zero,
    (previousValue, element) =>
        previousValue +
        (element.islovelace ? BigInt.parse(element.quantity) : BigInt.zero));