utils/validation/string_validation/string_validation library
Functions
-
validateIsAlphabet(
{String? value, bool onlyAcceptLowerCase = false, bool allowMultiline = true, bool trimWhiteSpace = true}) → bool -
check if the
value
is alphabet or not -
validateIsEmpty(
{String? value, bool excludeWhiteSpace = true}) → bool -
check if the
value
is empty or not -
validateIsStringDouble(
{required String value}) → bool - validate is string value can be parsed to double or not
-
validateIsStringInteger(
{required String value}) → bool - validate is string value can be parsed to integer or not
-
validateIsStringNumber(
{required String value}) → bool - validate is string value can be parsed to numeric or not
-
validateMaxStringLength(
{required int length, required String value}) → bool -
validate is string
value
have max length <=length
-
validateMinMaxStringLength(
{required int minLength, required int maxLength, required String value}) → bool -
validate is string
value
length >=minLength
and <=maxLength
-
validateMinStringLength(
{required int length, required String value}) → bool -
validate is string
value
have min length >=length