BleConnectionFailure constructor

const BleConnectionFailure({
  1. required BleConnectionFailureCategory category,
  2. String? platform,
  3. int? rawCode,
  4. String? domain,
  5. String? description,
})

Creates a BleConnectionFailure.

  • Parameter category: The normalized failure classification. Required.
  • Parameter platform: The reporting host platform identifier, or null if unknown.
  • Parameter rawCode: The raw platform-specific error code, or null if none was provided.
  • Parameter domain: The platform-specific error domain, or null if none was provided.
  • Parameter description: A human-readable description, or null if none was provided.

Implementation

const BleConnectionFailure({
  required this.category,
  this.platform,
  this.rawCode,
  this.domain,
  this.description,
});