ReadyValidationMessages class abstract
Callers can lookup localized strings with an instance of ReadyValidationMessages
returned by ReadyValidationMessages.of(context)
.
Applications need to include ReadyValidationMessages.delegate()
in their app's
localizationDelegates
list, and the locales they support in the app's
supportedLocales
list. For example:
import 'messages/messages.dart';
return MaterialApp(
localizationsDelegates: ReadyValidationMessages.localizationsDelegates,
supportedLocales: ReadyValidationMessages.supportedLocales,
home: MyApplicationHome(),
);
Update pubspec.yaml
Please make sure to update your pubspec.yaml to include the following packages:
dependencies:
# Internationalization support.
flutter_localizations:
sdk: flutter
intl: any # Use the pinned version from flutter_localizations
# Rest of dependencies
iOS Applications
iOS applications define key application metadata, including supported locales, in an Info.plist file that is built into the application bundle. To configure the locales supported by your app, you’ll need to edit this file.
First, open your project’s ios/Runner.xcworkspace Xcode workspace file. Then, in the Project Navigator, open the Info.plist file under the Runner project’s Runner folder.
Next, select the Information Property List item, select Add Item from the Editor menu, then select Localizations from the pop-up menu.
Select and expand the newly-created Localizations item then, for each locale your application supports, add a new item and select the locale you wish to add from the pop-up menu in the Value field. This list should be consistent with the languages listed in the ReadyValidationMessages.supportedLocales property.
Constructors
- ReadyValidationMessages(String locale)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- invalidUrl → String
-
No description provided for @invalidUrl.
no setter
- isBoolean → String
-
No description provided for @isBoolean.
no setter
- isCreditCard → String
-
No description provided for @isCreditCard.
no setter
- isDateTime → String
-
No description provided for @isDateTime.
no setter
- isDecimal → String
-
No description provided for @isDecimal.
no setter
- isEmail → String
-
No description provided for @isEmail.
no setter
- isEven → String
-
No description provided for @isEven.
no setter
- isInteger → String
-
No description provided for @isInteger.
no setter
- isNegative → String
-
No description provided for @isNegative.
no setter
- isNumber → String
-
No description provided for @isNumber.
no setter
- isOdd → String
-
No description provided for @isOdd.
no setter
- isPositive → String
-
No description provided for @isPositive.
no setter
- isTimeOfDay → String
-
No description provided for @isTimeOfDay.
no setter
- localeName → String
-
final
- notEmpty → String
-
No description provided for @notEmpty.
no setter
- regexp → String
-
No description provided for @regexp.
no setter
- required → String
-
No description provided for @required.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
contains(
String res) → String - No description provided for @contains.
-
containsItem(
dynamic res) → String - No description provided for @containsItem.
-
endsWith(
String res) → String - No description provided for @endsWith.
-
equal(
dynamic value) → String - No description provided for @equal.
-
greaterThan(
num min) → String - No description provided for @greaterThan.
-
greaterThanOrEqual(
num min) → String - No description provided for @greaterThanOrEqual.
-
hasLength(
int length) → String - No description provided for @hasLength.
-
hasMaxLength(
int max) → String - No description provided for @hasMaxLength.
-
hasMinLength(
int min) → String - No description provided for @hasMinLength.
-
hasRange(
int min, int max) → String - No description provided for @hasRange.
-
invalidAngelCompanyUrl(
String company) → String - No description provided for @invalidAngelCompanyUrl.
-
invalidAngelJobUrl(
String jobId) → String - No description provided for @invalidAngelJobUrl.
-
invalidCrunchbaseOrganizationUrl(
String organization) → String - No description provided for @invalidCrunchbaseOrganizationUrl.
-
invalidCrunchbasePersonUrl(
String person) → String - No description provided for @invalidCrunchbasePersonUrl.
-
invalidFacebookUrl(
String name, String id) → String - No description provided for @invalidFacebookUrl.
-
invalidGitHubUrl(
String user, String repository) → String - No description provided for @invalidGitHubUrl.
-
invalidGooglePlusUrl(
String userName, String id) → String - No description provided for @invalidGooglePlusUrl.
-
invalidHackerNewsItemUrl(
String id) → String - No description provided for @invalidHackerNewsItemUrl.
-
invalidHackerNewsUserUrl(
String id) → String - No description provided for @invalidHackerNewsUserUrl.
-
invalidInstagramUrl(
String user) → String - No description provided for @invalidInstagramUrl.
-
invalidLinkedInCompanyUrl(
String permalink) → String - No description provided for @invalidLinkedInCompanyUrl.
-
invalidLinkedInPostUrl(
String id) → String - No description provided for @invalidLinkedInPostUrl.
-
invalidLinkedInProfileUrl(
String permalink) → String - No description provided for @invalidLinkedInProfileUrl.
-
invalidMediumPostUrl(
String postId) → String - No description provided for @invalidMediumPostUrl.
-
invalidMediumUserUrl(
String userName, String id) → String - No description provided for @invalidMediumUserUrl.
-
invalidRedditUrl(
String user) → String - No description provided for @invalidRedditUrl.
-
invalidSnapchatUrl(
String user) → String - No description provided for @invalidSnapchatUrl.
-
invalidStackexchangeUrl(
String user, String id) → String - No description provided for @invalidStackexchangeUrl.
-
invalidStackoverflowQuestionUrl(
String id) → String - No description provided for @invalidStackoverflowQuestionUrl.
-
invalidStackoverflowUserUrl(
String id) → String - No description provided for @invalidStackoverflowUserUrl.
-
invalidTelegramProfileUrl(
String userName) → String - No description provided for @invalidTelegramProfileUrl.
-
invalidTwitterStatusUrl(
String userName, String tweetId) → String - No description provided for @invalidTwitterStatusUrl.
-
invalidTwitterUserUrl(
String userName) → String - No description provided for @invalidTwitterUserUrl.
-
invalidYoutubeChannelUrl(
String id) → String - No description provided for @invalidYoutubeChannelUrl.
-
invalidYoutubeUserUrl(
String userName) → String - No description provided for @invalidYoutubeUserUrl.
-
invalidYoutubeVideoUrl(
String id) → String - No description provided for @invalidYoutubeVideoUrl.
-
isBetween(
num min, num max) → String - No description provided for @isBetween.
-
isBetweenOrEqual(
num min, num max) → String - No description provided for @isBetweenOrEqual.
-
isDateAfter(
DateTime o) → String - No description provided for @isDateAfter.
-
isDateAfterOrEqual(
DateTime o) → String - No description provided for @isDateAfterOrEqual.
-
isDateBefore(
DateTime o) → String - No description provided for @isDateBefore.
-
isDateBeforeOrEqual(
DateTime o) → String - No description provided for @isDateBeforeOrEqual.
-
isDateBetween(
DateTime min, DateTime max) → String - No description provided for @isDateBetween.
-
isDateBetweenOrEqual(
DateTime min, DateTime max) → String - No description provided for @isDateBetweenOrEqual.
-
isDivisibleBy(
num division) → String - No description provided for @isDivisibleBy.
-
isIn(
Iterable list) → String - No description provided for @isIn.
-
isNotIn(
Iterable list) → String - No description provided for @isNotIn.
-
isTimeAfter(
DateTime o) → String - No description provided for @isTimeAfter.
-
isTimeAfterOrEqual(
DateTime o) → String - No description provided for @isTimeAfterOrEqual.
-
isTimeBefore(
DateTime o) → String - No description provided for @isTimeBefore.
-
isTimeBeforeOrEqual(
DateTime o) → String - No description provided for @isTimeBeforeOrEqual.
-
isTimeBetween(
DateTime min, DateTime max) → String - No description provided for @isTimeBetween.
-
isTimeBetweenOrEqual(
DateTime min, DateTime max) → String - No description provided for @isTimeBetweenOrEqual.
-
lessThan(
num max) → String - No description provided for @lessThan.
-
lessThanOrEqual(
num max) → String - No description provided for @lessThanOrEqual.
-
listHasLength(
int length) → String - No description provided for @listHasLength.
-
listMaxLength(
int max) → String - No description provided for @listMaxLength.
-
listMinLength(
int min) → String - No description provided for @listMinLength.
-
listRange(
int min, int max) → String - No description provided for @listRange.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notContainsItem(
dynamic res) → String - No description provided for @notContainsItem.
-
notEqual(
dynamic value) → String - No description provided for @notEqual.
-
startsWith(
String res) → String - No description provided for @startsWith.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
of(
BuildContext context) → ReadyValidationMessages?
Constants
-
delegate
→ const LocalizationsDelegate<
ReadyValidationMessages> -
supportedLocales
→ const List<
Locale> - A list of this localizations delegate's supported locales.