getAll<T> method

List<T> getAll<T>(
  1. Type type
)

Implementation

List<T> getAll<T>(Type type) {
  List<T> results = <T>[];

  transactions.values.forEach((TransactionBase transaction) {
    if (transaction.runtimeType == type) {
      results.add(transaction as T);
    }
  });

  return results;
}