isFailure property
bool
get
isFailure
Whether this event carries failure detail.
Returns true when failure is non-null, which is the case for every BleConnectionState.failed event and for
unexpected BleConnectionState.disconnected events.
Implementation
bool get isFailure => failure != null;