fetchTransactions method

Future<bool> fetchTransactions({
  1. bool? replace,
})

Implementation

Future<bool> fetchTransactions({bool? replace}) async {
  final result = await state.transactionPage.run(
    () async => dataOrThrowFirstValidationError(
      await repo.fetchTransactions(nextCursor: 0, query: query),
    ),
  );

  if (result.isSuccess) {
    state.addTransactionsFromResponse(result.data!, replace: replace);
  }

  return result.isSuccess;
}