BitcoinWalletAggregate constructor

BitcoinWalletAggregate({
  1. required String aggregateId,
  2. required String aggregateType,
  3. required EventStore eventStore,
  4. required CryptoService cryptoService,
  5. required SecureStorage secureStorage,
  6. TransactionBuilderService? transactionBuilder,
})

Implementation

BitcoinWalletAggregate({
  required String aggregateId,
  required String aggregateType,
  required EventStore eventStore,
  required this.cryptoService,
  required this.secureStorage,
  this.transactionBuilder,
}) : super(aggregateId: aggregateId, aggregateType: aggregateType, eventStore: eventStore) {
  // Register handlers immediately upon construction
  registerHandlers();
}