ConnectionStateChange constructor
ConnectionStateChange({
- required ConnectionState previousState,
- required ConnectionState newState,
- Object? error,
Creates a new connection state change event
Implementation
ConnectionStateChange({
required this.previousState,
required this.newState,
Object? error,
}) : timestamp = DateTime.now(),
error = error;