Ledger.hook constructor

Ledger.hook(
  1. AgentFactory agent
)

Implementation

factory Ledger.hook(AgentFactory agent) {
  return Ledger()..setAgent(agent);
}