super_module library
Classes
- AddAddressEvent
- AddAddressPostFailureState
- AddAddressPostState
- AddAddressPostSuccessState
- AddressBloc
- AddressEvent
- AddressInitial
- AddressModel
- AddressRemoveFailure
- AddressRemoveSuccess
- AddressRemovingState
- AddressState
- AddressUpdateFailure
- AddressUpdatingState
- AllAvailableBiometricsFetchFailure
- AllAvailableBiometricsFetching
- AllAvailableBiometricsFetchSuccess
- AppImageProvider
- AppLaunchers
- AuthenticateWithBiometricEvent
- AuthenticateWithBiometricFetchFailure
- AuthenticateWithBiometricFetching
- AuthenticateWithBiometricFetchSuccess
- BiometricAuthenticationFetching
- BiometricAuthenticationFetchSuccess
- BiometricBloc
- BiometricEvent
- BiometricInitial
- BiometricRegisterModel
- BiometricRegisterRequestModel
- BiometricsStatusCheckedSuccessState
- BiometricsStatusCheckEvent
- BiometricsStatusCheckingState
- BiometricState
- Cart
- CartBloc
- CartEvent
- CartFetchEvent
- CartInitial
- CartItemAddEvent
- CartItemRemoveEvent
- CartLoadFailure
- CartLoading
- CartLoadSuccess
- CartQuantityUpdateEvent
- CartQuantityUpdateFailure
- CartQuantityUpdateLoading
- CartQuantityUpdateSuccess
- CartState
- CartUpdateFailure
- CartUpdating
- ChangeForgotPasswordBloc
- ChangeForgotPasswordButtonTapEvent
- ChangeForgotPasswordEvent
- ChangeForgotPasswordInitial
- ChangeForgotPasswordLoadFailure
- ChangeForgotPasswordLoading
- ChangeForgotPasswordLoadSuccess
- ChangeForgotPasswordState
- ChatBloc
- ChatController
- ChatEvent
- ChatInitial
- ChatState
- ChatSubscribeFailureState
- ChatSubscribeSuccessState
- CheckUserNameAvailability
- CreateSocketConnectionEvent
- Disposable
- If objects that are registered inside GetIt implements Disposable the onDispose method will be called whenever that Object is unregistered, resetted or its enclosing Scope is popped
- EasyLoading
- EasyLoadingAnimation
- EmitAnyEvent
- EmitOnAnyEvent
- FirebaseBloc
- FirebaseController
- FirebaseEvent
- FirebaseFcmTokenChanged
- FirebaseFcmTokenRefreshState
- FirebaseFetchFcmTokenEvent
- FirebaseFetchFcmTokenLoadingState
- FirebaseFetchFcmTokenSuccessState
- FirebaseFetchInitialNotificationEvent
- FirebaseInitial
- FirebaseInitializeNotificationEvent
- FirebaseInitialNotificationFetchSuccessState
- FirebaseListenFcmTokenChangeEvent
- FirebaseListenNotificationEvent
- FirebaseNewNotificationReceivedEvent
- FirebaseNewNotificationState
- FirebaseNotification
- FirebaseNotificationClickedEvent
- FirebaseNotificationClickedState
- FirebaseOnNotificationClickedEvent
- FirebaseRemoteConfigFetchEvent
- FirebaseRemoteConfigFetchFailure
- FirebaseRemoteConfigFetching
- FirebaseRemoteConfigFetchSuccess
- FirebaseShowLocalNotificationEvent
- FirebaseState
- FlutterEasyLoading
- ForgotPasswordPinVerificationRequestModel
- FullScreenImageView
- GetAddressEvent
- GetAddressListFailure
- GetAddressListFetching
- GetAddressListFetchSuccess
- GetAllAvailableBiometricsEvent
- GetDefaultAddressEvent
- GetDefaultAddressFetchFailure
- GetDefaultAddressFetching
- GetDefaultAddressSuccess
- GetIt
- Very simple and easy to use service locator You register your object creation factory or an instance of an object with registerFactory, registerSingleton or registerLazySingleton And retrieve the desired object using get or call your locator as function as its a callable class Additionally GetIt offers asynchronous creation functions as well as functions to synchronize the async initialization of multiple Singletons
- GetMessageEvent
- GetMessageResponseEvent
- GetOnlineUsersEvent
- GetOtpEvent
- GetOtpFailure
- GetOtpSending
- GetOtpSuccess
- GlobalResponseModel
- HasBiometricAuthenticationEvent
- IAppManager
- IAuthRemoteRepository
- IChatController
- IFirebaseController
- InitDependency
- Data structure used to identify a dependency by type and instanceName
- ISessionManager
- LoginBloc
- LoginButtonTapEvent
- LoginEvent
- LoginFailureState
- LoginInitialState
- LoginLoadingState
- LoginState
- LoginSuccessState
- PageLimitModel
- PaginationModel
- RegisterBiometricsEvent
- RegisterBiometricsFailureState
- RegisterBiometricsSuccessState
- RegisterBloc
- RegisterButtonTapEvent
- RegisterEvent
- RegisterFailureState
- RegisteringBiometricsState
- RegisterInitialState
- RegisterLoadingState
- RegisterState
- RegisterSuccessState
- RemoveAddressEvent
- ResetPasswordBloc
- ResetPasswordButtonTapEvent
- ResetPasswordEmailButtonTapEvent
- ResetPasswordEvent
- ResetPasswordInitial
- ResetPasswordLoadFailure
- ResetPasswordLoading
- ResetPasswordLoadSuccess
- ResetPasswordState
- SendMessageEvent
- SetDefaultAddressEvent
- SetDefaultAddressFetchFailure
- SetDefaultAddressFetching
- SetDefaultAddressSuccess
- ShadowChangeHandlers
-
If an object implements the
ShadowChangeHandler
if will get notified if an Object with the same registration type and name is registered on a higher scope which will shadow it. It also will get notified if the shadowing object is removed from GetIt - Wraps NSUserDefaults (on iOS) and SharedPreferences (on Android), providing a persistent store for simple data.
- ShippingAddress
- SocialBloc
- SocialEvent
- SocialInitial
- SocialLoginTapEvent
- SocialState
- SocialStateFailed
- SocialStateLoading
- SocialStateSuccess
- StoreRecentSearchEntity
- SuperKeys
- UpdateAddressEvent
- UserBloc
- UserEvent
- UserInformationUpdateFailure
- UserInformationUpdateSuccess
- UserInformationUpdating
- UserInitial
- UserModel
- UsernameCheckFailureState
- UsernameCheckingState
- UsernameCheckSuccessState
- UserProfileFetchEvent
- UserProfileLoadFailure
- UserProfileLoading
- UserProfileLoadSuccess
- UserProfileUpdateEvent
- UserRankModel
- UserRankResponseModel
- UserState
- UserUploadImageModel
- VerifyOtpBloc
- VerifyOtpButtonTapEvent
- VerifyOtpEvent
- VerifyOtpInitial
- VerifyOtpLoadFailure
- VerifyOtpLoading
- VerifyOtpState
- VerifyOtpSuccess
- WillSignalReady
-
If your singleton that you register wants to use the manually signalling
of its ready state, it can implement this interface class instead of using
the
signalsReady
parameter of the registration functions (you don't really have to implement much ;-) ) - WishList
- WishlistBloc
- WishlistEvent
- WishlistFetchEvent
- WishlistInitial
- WishlistItemAddEvent
- WishlistItemRemoveEvent
- WishlistLoadFailure
- WishlistLoading
- WishlistLoadSuccess
- WishlistState
- WishlistUpdateFailure
- WishlistUpdating
Enums
- EasyLoadingAnimationStyle
- loading animation
- EasyLoadingIndicatorType
-
loading indicator type. see
https://github.com/jogboms/flutter_spinkit#-showcase
- EasyLoadingMaskType
- loading mask type none default mask type, allow user interactions while loading is displayed clear don't allow user interactions while loading is displayed black don't allow user interactions while loading is displayed custom while mask type is custom, maskColor should not be null
- EasyLoadingStatus
- loading status
- EasyLoadingStyle
- loading style
- EasyLoadingToastPosition
- toast position
- ImageType
- SocialType
Extensions
Properties
- loginClickTime ↔ DateTime?
-
getter/setter pair
Functions
-
addBoolToPref(
String key, bool value) → dynamic -
addStringToPref(
String key, String value) → dynamic -
appIcon(
{required String assetName, double iconSize = 28.0, VoidCallback? onPressed, double padding = 8.0, ImageType imageType = ImageType.SVG}) → Widget -
checkForUpdates(
{required BuildContext context, required FirebaseRemoteConfigModel firebaseRemoteConfigModel, String locale = 'en', required String currentAppVersion, VoidCallback? onNoPressed}) → void -
clearAllPref(
) → dynamic -
configureModuleDependencies(
GetIt getIt) → void -
convertWhiteSpaceUrl(
String text) → String -
deleteCacheDir(
) → Future< void> -
findCachedImagePath(
String imageUrl) → Future< File> -
formatDate(
String date) → DateTime -
formatDateOnly(
String date) → DateTime -
formatUTCDate(
String date) → String -
getBoolPref(
String key) → Future< bool?> -
getJson(
{required String fileName}) → Future -
getStoreUrl(
FirebaseRemoteConfigModel firebaseRemoteConfigModel) → String -
getStringPref(
String key) → Future< String?> -
hideKeyboard(
BuildContext context) → void -
horizontalSpacing(
{required double space}) → Widget -
isRedundentClick(
DateTime currentTime) → bool -
shouldShowUpdate(
{required String currentAppVersion, required FirebaseRemoteConfigModel firebaseRemoteConfigModel}) → bool -
throwIf(
bool condition, Object error) → void - Two handy functions that help me to express my intention clearer and shorter to check for runtime errors
-
throwIfNot(
bool condition, Object error) → void -
toBeginningOfSentenceCase(
String input) → String -
validateEmail(
String? value) → String? -
validateEqual(
Map< String, String?> firstString, Map<String, String?> secondString) → String? -
validateField(
String? value, String field) → String? -
validateName(
String? name, {String fieldName = 'Name', int minLen = 1, int maxLength = 40}) → String? -
validateNotEmpty(
String? value, String type) → String? -
validatePassword(
String? value, String password) → String? -
verticalSpacing(
{required double space}) → Widget
Typedefs
-
DisposingFunc<
T> = FutureOr Function(T param) -
Signature for disposing function
because closures like
(x){}
have a return type of Null we don't useFutureOr<void>
- EasyLoadingStatusCallback = void Function(EasyLoadingStatus status)
-
FactoryFunc<
T> = T Function() - Signature of the factory function used by non async factories
-
FactoryFuncAsync<
T> = Future< T> Function() - Signature of the factory function used by async factories
-
FactoryFuncParam<
T, P1, P2> = T Function(P1 param1, P2 param2) -
For Factories that expect up to two parameters if you need only one use
void
for the one you don't use -
FactoryFuncParamAsync<
T, P1, P2> = Future< T> Function(P1 param1, P2 param2) -
For async Factories that expect up to two parameters if you need only one use
void
for the one you don't use - ScopeDisposeFunc = FutureOr Function()
- Signature for disposing function on scope level