fix:对比原型增加功能交互
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import '../state/app_interaction_state.dart';
|
||||
|
||||
abstract class OutboundRepository {
|
||||
Future<void> recordOutbound(OutboundEvent event);
|
||||
}
|
||||
|
||||
class MemoryOutboundRepository implements OutboundRepository {
|
||||
final List<OutboundEvent> _events = [];
|
||||
|
||||
List<OutboundEvent> get events => List.unmodifiable(_events);
|
||||
|
||||
@override
|
||||
Future<void> recordOutbound(OutboundEvent event) async {
|
||||
_events.add(event);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user