RoomTypingSender constructor

RoomTypingSender({
  1. required RealtimeLifecycleClient client,
  2. required ClockPort clock,
  3. required SchedulerPort scheduler,
  4. required String actor,
  5. Duration throttleInterval = const Duration(seconds: 3),
  6. Duration inactivityTimeout = const Duration(seconds: 5),
  7. Duration eventExpiry = const Duration(seconds: 8),
  8. String eventIdGenerator()?,
})

Implementation

RoomTypingSender({
  required RealtimeLifecycleClient client,
  required ClockPort clock,
  required SchedulerPort scheduler,
  required String actor,
  this.throttleInterval = const Duration(seconds: 3),
  this.inactivityTimeout = const Duration(seconds: 5),
  this.eventExpiry = const Duration(seconds: 8),
  String Function()? eventIdGenerator,
})  : _client = client,
      _clock = clock,
      _scheduler = scheduler,
      _actor = actor,
      _eventIdGenerator = eventIdGenerator;