StringValidationExtension<T> extension

on

Methods

contains(Pattern pattern, [MessageCallBack<String>? message]) FieldValidator<String?, String>
check if the value contains pattern
containsFn(ValueGetter<Pattern> pattern, [MessageCallBack<String>? message]) FieldValidator<String?, String>
check if the value contains pattern
creditCard([MessageCallBack<String>? message]) FieldValidator<String?, String>
check if the value is email address
email([MessageCallBack<String>? message]) FieldValidator<String?, String>
check if the value is email address
endsWith(String other, [MessageCallBack<String>? message]) FieldValidator<String?, String>
check if the value ends with other
endsWithFn(ValueGetter<String> other, [MessageCallBack<String>? message]) FieldValidator<String?, String>
check if the value ends with other
hasLength(int length, [MessageCallBack<String>? message]) FieldValidator<String?, String>
check is the value has length of length
hasLengthFn(ValueGetter<int> length, [MessageCallBack<String>? message]) FieldValidator<String?, String>
check is the value has length of length
hasMaxLength(int max, [MessageCallBack<String>? message]) FieldValidator<String?, String>
check is the value has max length of max
hasMaxLengthFn(ValueGetter<int> max, [MessageCallBack<String>? message]) FieldValidator<String?, String>
check is the value has max length of max
hasMinLength(int min, [MessageCallBack<String>? message]) FieldValidator<String?, String>
check is the value has min length of min
hasMinLengthFn(ValueGetter<int> min, [MessageCallBack<String>? message]) FieldValidator<String?, String>
check is the value has min length of min
hasRange(int min, int max, [MessageCallBack<String>? message]) FieldValidator<String?, String>
check is the value length is between min and max
hasRangeFn(ValueGetter<int> min, ValueGetter<int> max, [MessageCallBack<String>? message]) FieldValidator<String?, String>
check is the value length is between min and max
isAngelCompany({MessageCallBack<String>? message, String? company}) FieldValidator<String?, String>
check string is angel company valid url
isAngelJob({MessageCallBack<String>? message, String? jobId}) FieldValidator<String?, String>
check string is angel job valid url
isCrunchbaseOrganization({MessageCallBack<String>? message, String? organization}) FieldValidator<String?, String>
check string is crunchbase organization url
isCrunchbasePerson({MessageCallBack<String>? message, String? person}) FieldValidator<String?, String>
check string is crunchbase person url
isDateTime([MessageCallBack<String>? message]) FieldValidator<String?, DateTime>
check is the value is DateTime
isDecimal([MessageCallBack<String>? message]) FieldValidator<String?, double>
check is the value is double
isFacebookUrl({MessageCallBack<String>? message, String? name, String? id}) FieldValidator<String?, String>
Check string is facebook url
isGitHubUrl({MessageCallBack<String>? message, String? user, String? repository}) FieldValidator<String?, String>
Check string is github url
isGooglePlusUrl({MessageCallBack<String>? message, String? userName, String? id}) FieldValidator<String?, String>
Check string is google plus url
isHackerNewsItemUrl({MessageCallBack<String>? message, String? id}) FieldValidator<String?, String>
Check string is hacker news url
isHackerNewsUserUrl({MessageCallBack<String>? message, String? id}) FieldValidator<String?, String>
Check string is hacker news user url
isInstagramUrl({MessageCallBack<String>? message, String? user}) FieldValidator<String?, String>
Check string is instagram url
isInteger([MessageCallBack<String>? message]) FieldValidator<String?, int>
check is the value is int
isLinkedInCompany({MessageCallBack<String>? message, String? permalink}) FieldValidator<String?, String>
Check string is linkedin company url
isLinkedInPost({MessageCallBack<String>? message, String? id}) FieldValidator<String?, String>
Check string is linkedin post url
isLinkedInProfile({MessageCallBack<String>? message, String? permalink}) FieldValidator<String?, String>
Check string is linkedin profile url
isMediumPostUrl({MessageCallBack<String>? message, String? postId}) FieldValidator<String?, String>
Check string is medium post url
isMediumUserUrl({MessageCallBack<String>? message, String? userName, String? id}) FieldValidator<String?, String>
Check string is medium user url
isNumber([MessageCallBack<String>? message]) FieldValidator<String?, num>
check is the value is number
isRedditUrl({MessageCallBack<String>? message, String? user}) FieldValidator<String?, String>
Check string is reddit url
isSnapchatUrl({MessageCallBack<String>? message, String? user}) FieldValidator<String?, String>
Check string is snapchat url
isStackexchangeUrl({MessageCallBack<String>? message, String? user, String? id, String? community}) FieldValidator<String?, String>
Check string is stack exchange url
isStackoverflowQuestionUrl({MessageCallBack<String>? message, String? id}) FieldValidator<String?, String>
Check string is stackoverflow question url
isStackoverflowUserUrl({MessageCallBack<String>? message, String? id}) FieldValidator<String?, String>
Check string is stackoverflow user url
isTelegramProfileUrl({MessageCallBack<String>? message, String? userName}) FieldValidator<String?, String>
Check string is telegram profile url
isTimeOfDay([MessageCallBack<String>? message]) FieldValidator<String?, TimeOfDay>
check is the value is TimeOfDay
isTwitterStatusUrl({MessageCallBack<String>? message, String? userName, String? tweetId}) FieldValidator<String?, String>
Check string is twitter status url
isTwitterUserUrl({MessageCallBack<String>? message, String? userName}) FieldValidator<String?, String>
Check string is twitter user url
isYoutubeChannelUrl({MessageCallBack<String>? message, String? id}) FieldValidator<String?, String>
Check string is youtube channel url
isYoutubeUserUrl({MessageCallBack<String>? message, String? username}) FieldValidator<String?, String>
Check string is youtube user url
isYoutubeVideoUrl({MessageCallBack<String>? message, String? id}) FieldValidator<String?, String>
Check string is youtube video url
matches(RegExp regExp, [MessageCallBack<String>? message]) FieldValidator<String?, String>
check is the value matches regExp
matchesFn(ValueGetter<RegExp> regExp, [MessageCallBack<String>? message]) FieldValidator<String?, String>
check is the value matches regExp
notEmpty([MessageCallBack<String>? message]) FieldValidator<String?, String>
check if the value is not empty
notEmptyOrWhiteSpace([MessageCallBack<String>? message]) FieldValidator<String?, String>
check if the value is not empty and not contains only white spaces
startsWith(Pattern pattern, [MessageCallBack<String>? message]) FieldValidator<String?, String>
check if the value starts with pattern
startsWithFn(ValueGetter<Pattern> pattern, [MessageCallBack<String>? message]) FieldValidator<String?, String>
check if the value starts with pattern