auth_error_valueFailure method
{failure, select, auth_error_invalidEmail{Please enter a valid email.} auth_error_shortPassword{Please use a longer password.} auth_error_invalidPassword{Please include (at least) one capital letter and number.} auth_error_longDisplayName{Please enter a shorter display name (max 16 char).} auth_error_invalidisplayName{Please enter a valid display name.} auth_error_invalidDateFormat{Invalid date format.} auth_error_invalidUnitSystem{Invalid unit system.} other{Authentication value error.}}
Implementation
String auth_error_valueFailure(Object failure) {
return Intl.select(
failure,
{
'auth_error_invalidEmail': 'Please enter a valid email.',
'auth_error_shortPassword': 'Please use a longer password.',
'auth_error_invalidPassword':
'Please include (at least) one capital letter and number.',
'auth_error_longDisplayName':
'Please enter a shorter display name (max 16 char).',
'auth_error_invalidisplayName': 'Please enter a valid display name.',
'auth_error_invalidDateFormat': 'Invalid date format.',
'auth_error_invalidUnitSystem': 'Invalid unit system.',
'other': 'Authentication value error.',
},
name: 'auth_error_valueFailure',
desc: '',
args: [failure],
);
}