utils/security/button_security
library
Functions
-
safeExecute(VoidCallback? callback, {String? context})
→ void
-
-
safeExecuteAsync(Future<void> callback()?, {String? context})
→ Future<void>
-
-
sanitizeButtonText(String? text, {int maxLength = 500, bool? enableSecurity})
→ String
-
Sanitize text input to prevent potential issues.
-
validateBorderRadius(double? value, {required double defaultValue, bool? enableSecurity})
→ double
-
-
validateElevation(double? value, {required double defaultValue, bool? enableSecurity})
→ double
-
-
validateFontSize(double? value, {required double defaultValue, bool? enableSecurity})
→ double
-
-
validateSize(double? value, {required double defaultValue, double? min, double? max, bool? enableSecurity})
→ double
-