ConnectionValidationResult constructor

const ConnectionValidationResult({
  1. bool allowed = true,
  2. String? reason,
  3. bool showMessage = false,
})

Creates a connection validation result.

Parameters:

  • allowed: Whether the connection should be allowed (default: true)
  • reason: Optional reason for the decision (for debugging/logging)
  • showMessage: Whether to show a visual message to the user (default: false)

Implementation

const ConnectionValidationResult({
  this.allowed = true,
  this.reason,
  this.showMessage = false,
});