utils/security/appbar_security
library
Functions
-
safeAppBarCallback(VoidCallback? callback, {String? context})
→ void
-
Safe callback execution for AppBar callbacks.
-
safeValueChanged<T>(ValueChanged<T>? callback, T value, {String? context})
→ void
-
Safe value changed callback execution.
-
sanitizeHintText(String? text, {String defaultHint = 'Search...', bool? enableSecurity})
→ String
-
Sanitize hint text for search bars.
Pass
enableSecurity to override global setting, or leave null to use global.
-
sanitizeTitleText(String? text, {bool? enableSecurity})
→ String
-
Sanitize title text to prevent overflow and potential issues.
Pass
enableSecurity to override global setting, or leave null to use global.
-
validateActions<T>(List<T>? actions, {bool? enableSecurity})
→ List<T>?
-
Validate actions list is within bounds.
Pass
enableSecurity to override global setting, or leave null to use global.
-
validateAppBarElevation(double? value, {required double defaultValue, bool? enableSecurity})
→ double
-
Validate elevation is within bounds.
Pass
enableSecurity to override global setting, or leave null to use global.
-
validateAppBarHeight(double? value, {required double defaultValue, bool? enableSecurity})
→ double
-
Validate AppBar height is within bounds.
Pass
enableSecurity to override global setting, or leave null to use global.
-
validateGradientColors(List<Color>? colors, {bool? enableSecurity})
→ List<Color>?
-
Validate gradient colors list.
Pass
enableSecurity to override global setting, or leave null to use global.
-
validateIconSize(double? value, {required double defaultValue, bool? enableSecurity})
→ double
-
Validate icon size is within bounds.
Pass
enableSecurity to override global setting, or leave null to use global.
-
validateSystemOverlayStyle(SystemUiOverlayStyle? style)
→ SystemUiOverlayStyle?
-
Validate system overlay style for security.
-
validateTabs<T>(List<T> tabs, {bool? enableSecurity})
→ List<T>
-
Validate tabs list is within bounds.
Pass
enableSecurity to override global setting, or leave null to use global.
-
validateTitleFontSize(double? value, {required double defaultValue, bool? enableSecurity})
→ double
-
Validate title font size is within bounds.
Pass
enableSecurity to override global setting, or leave null to use global.