utils/security/textfield_security
library
Functions
-
safeTextFieldCallback(void callback(String)?, String value, {String context = 'TextField callback'})
→ void
-
Safely executes a text field callback with error handling.
-
safeTextFieldVoidCallback(VoidCallback? callback, {String context = 'TextField void callback'})
→ void
-
Safely executes a void callback with error handling.
-
validateContentPadding(double? padding, {required double defaultValue, bool? enableSecurity})
→ double
-
Validates content padding within configured bounds.
-
validateInputLength(int? length, {int? defaultValue, bool? enableSecurity})
→ int
-
Validates input length.
-
validateLabelSpacing(double? spacing, {double defaultValue = 8.0, bool? enableSecurity})
→ double
-
Validates label spacing within configured bounds.
-
validateTextFieldBorderRadius(double? radius, {required double defaultValue, bool? enableSecurity})
→ double
-
Validates border radius within configured bounds.
-
validateTextFieldBorderWidth(double? width, {double defaultValue = 1.0, bool? enableSecurity})
→ double
-
Validates border width within configured bounds.
-
validateTextFieldFontSize(double? fontSize, {required double defaultValue, bool? enableSecurity})
→ double
-
Validates font size within configured bounds.
-
validateTextFieldHeight(double? height, {double? defaultValue, bool? enableSecurity})
→ double
-
Validates height within configured bounds.
-
validateTextFieldIconSize(double? size, {required double defaultValue, bool? enableSecurity})
→ double
-
Validates icon size within configured bounds.
-
validateTextFieldMaxLines(int? maxLines, {int defaultValue = 1, bool? enableSecurity})
→ int
-
Validates max lines within configured bounds.
-
validateTextFieldMinLines(int? minLines, {int defaultValue = 1, bool? enableSecurity})
→ int
-
Validates min lines within configured bounds.