ConnectionValidationResult.deny constructor

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

Creates a result that denies the connection.

Parameters:

  • reason: Optional explanation for why the connection was denied
  • showMessage: Whether to show a visual message to the user (default: false)

Implementation

const ConnectionValidationResult.deny({
  String? reason,
  bool showMessage = false,
}) : this(allowed: false, reason: reason, showMessage: showMessage);