ConnectionStateChange constructor

ConnectionStateChange({
  1. required ConnectionState previousState,
  2. required ConnectionState newState,
  3. Object? error,
})

Creates a new connection state change event

Implementation

ConnectionStateChange({
  required this.previousState,
  required this.newState,
  Object? error,
})  : timestamp = DateTime.now(),
      error = error;