BleConnectionEvent constructor

const BleConnectionEvent({
  1. required BleConnectionState state,
  2. BleConnectionFailure? failure,
})

Creates a BleConnectionEvent.

  • Parameter state: The connection state this event represents. Required.
  • Parameter failure: The accompanying failure detail, or null when the event is not a failure.

Implementation

const BleConnectionEvent({
  required this.state,
  this.failure,
});