constants library Null safety

Classes

Constants

Constants

ACCOUNT_FAILURE_MESSAGE → const String
"Could not create an account"
AUTH_USER → const String
'AUTH_USER'
CACHE_AUTH_TOKEN → const String
"CACHE_AUTH_TOKEN"
CACHE_DASH_BOARD_DATA → const String
"CACHE_DASH_BOARD_DATA"
CACHE_FAILURE_MESSAGE → const String
"Could not access records"
CHECK_SAVED_USER → const String
"CHECK_SAVED_USER"
emailRegex → const String
r"""^[a-zA-Z0-9.a-zA-Z0-9.!#$%&'*+-/=?^_`{|}~]+@[a-zA-Z0-9]+\.[a-zA-Z]+"""
FORBIDDEN_MESSAGE → const String
"Access to the requested resource is forbidden"
INPUT_FAILURE_MESSAGE → const String
"Input Failure"
LANGUAGE_FAILURE_MESSAGE → const String
"Could not fetch locale"
nameRegex → const String
r"^[a-zA-Z]{2,30}$"
NETWORK_FAILURE_MESSAGE → const String
"Please activate your internet"
NOT_FOUND_MESSAGE → const String
"Method not found"
pageSize → const int
10
passRegex → const String
r'^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{6,}$'
PERMISSION_FAILURE_MESSAGE → const String
"Please enable locations for app in settings"
PERMISSION_NEVER_ASKED_FAILURE_MESSAGE → const String
"Please for location never asked"
SELECT_FAIL_FAILURE_MESSAGE → const String
"You did not pick an file"
SELECT_FROM_CAMERA_FAILURE_MESSAGE → const String
"Something went wrong with the camera"
"Couldnt pick image from gallery"
SELECT_FROM_PHONE_FAILURE_MESSAGE → const String
"Something went wrong with the file"
SELECT_IMAGE_FAILURE_MESSAGE → const String
"You did not pick an image"
SERVER_FAILURE_MESSAGE → const String
"Server error please try again"
SERVER_MAINTAINCE_FAILURE_MESSAGE → const String
"Service maintenance failed"
SOCKET_FAILURE_MESSAGE → const String
"Seems you internet connection ran out"
UNAUTHENTICATED_FAILURE_MESSAGE → const String
"You are unauthenticated, you will be logged out"

Functions

returnFailure(dynamic exception) String