SearchBarSecurityConfig class

Security configuration for SearchBar widgets.

Security is OFF by default. Enable it globally or per-widget.

Example:

// Enable security globally
SearchBarSecurityConfig.enableSecurity();

// Or per-widget
CustomSearchBar(
  enableSecurity: true,  // Override global setting
)

Constructors

SearchBarSecurityConfig()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

enableSecurityLogging ↔ bool
Enable debug logging for security events.
getter/setter pair
enforceValidation ↔ bool
Whether to enforce validation. Defaults to false (security OFF).
getter/setter pair
maxBorderRadius ↔ double
Maximum border radius
getter/setter pair
maxBorderWidth ↔ double
Maximum border width
getter/setter pair
maxDebounceDuration ↔ int
Debounce duration for search (milliseconds)
getter/setter pair
maxFontSize ↔ double
Maximum font size
getter/setter pair
maxHeight ↔ double
Maximum height for search bar
getter/setter pair
maxIconSize ↔ double
Maximum icon size
getter/setter pair
maxPadding ↔ double
Maximum padding value
getter/setter pair
maxQueryLength ↔ int
Maximum allowed search query length
getter/setter pair
minDebounceDuration ↔ int
Minimum debounce duration (milliseconds)
getter/setter pair
minFontSize ↔ double
Minimum font size
getter/setter pair
minHeight ↔ double
Minimum height for search bar
getter/setter pair
minIconSize ↔ double
Minimum icon size
getter/setter pair
minQueryLength ↔ int
Minimum allowed search query length for search to trigger
getter/setter pair

Static Methods

disableSecurity() → void
Disable security validation globally.
enableSecurity() → void
Enable security validation globally.
resetToDefaults() → void
Reset all settings to defaults.