icapps_architecture library Null safety

Classes

BaseProviderWidget<T extends ChangeNotifier, Theme, Localization>
BaseThemeData
Holder class for the theme base. Fills in basic shared properties
BaseThemeProviderWidget<Theme, Localization>
Bundle
Wrapper for storing generic values based on keys. The contained values are all serializable using platform channels
CombiningSmartInterceptor
Dio Interceptor implementation which calls the interceptors in the logical order (request in the interceptor order, responses and errors in the reverse order)
ComputePool
A pool of isolate workers that will handle passed work. Using a compute pool will greatly reduce the dart isolate startup overhead
ConnectivityHelper
Helper to determine if a device has connectivity
DisposeAware
FadeInRoute<T>
Page route that fades in the child page
LifecycleWidget
Helper widget for reacting to lifecycle events. This widget listens to changes in the AppLifecycleState.
Log
LoggerLogImpl
LoggingFactory
NativeConfirmDialog
Widget for displaying a confirmation dialog above the current contents of the app. On Android devices, this will resolve to a Material dialog, on iOS this to a Cupertino dialog.
NativeInfoDialog
Widget for displaying an info dialog above the current contents of the app. On Android devices, this will resolve to a Material dialog, on iOS this to a Cupertino dialog.
OsInfo
Helper class containing information about the OS that the app is currently running on
PrefixLogger
ResponsiveWidget
Widget that builds different UIs based on device characteristics
Restorable
Base class for restorable change view models
RestorableViewModelHolder<T extends Restorable>
Holder class for restorable view models, use with the flutter restoration framework (See RestorationMixin). The contained viewModel can change at any time, that's why it is usually wrapped in a builder that listens for changes. Eg: AnimatedBuilder.
SharedPreferenceStorage
Utility class to facilitate storing shared preferences
SimpleInterceptor
Base class for simple Dio interceptors to be used in conjunction with CombiningSmartInterceptor.
SimpleKeyValueStorage
Simple abstraction for saving / retrieving string values based on string key
SizeInformation
Device/screen information holder
TouchFeedBack
Helper class for platform-specific touch feedback
TouchFeedBackIOS
VoidLogger
WrappingOutput

Mixins

AfterLayout<T extends StatefulWidget>
ChangeNotifierEx
Extended version of the foundation's ChangeNotifier.
LocalizedError

Extensions

BuilContextExtensions
IterableExtension
ListExtensions
ListIterableExtension
Extension on lists
LoggerExtension
MapExtension
MapExtension2
MediaQueryExtension
NullExtension2
Extensions for nullable types
NullStringExtension

Constants

isInDebug → const bool
Returns true if the current code is executing in debug mode
kDebugMode
isInProfile → const bool
Returns true if the current code is executing in profile mode
kProfileMode
isInRelease → const bool
Returns true if the current code is executing in release mode
kReleaseMode

Properties

isDeviceAndroid bool
final
isDeviceIOS bool
final
isInTest bool
Returns true if the code is currently being execute by unit tests
read-only
localizationLookup ↔ Localization Function<Localization>(BuildContext context)
read / write
staticLogger Log
read-only
themeLookup ↔ Theme Function<Theme>(BuildContext context)
read / write

Functions

await2<A, B>(Future<A> a, Future<B> b) Future<Tuple2<A, B>>
Waits for both futures and returns a future containing a Tuple2 with the results of both futures
await3<A, B, C>(Future<A> a, Future<B> b, Future<C> c) Future<Tuple3<A, B, C>>
Waits for all futures and returns a future containing a Tuple3 with the results of all futures
await4<A, B, C, D>(Future<A> a, Future<B> b, Future<C> c, Future<D> d) Future<Tuple4<A, B, C, D>>
Waits for all futures and returns a future containing a Tuple4 with the results of all futures
await5<A, B, C, D, E>(Future<A> a, Future<B> b, Future<C> c, Future<D> d, Future<E> e) Future<Tuple5<A, B, C, D, E>>
Waits for all futures and returns a future containing a Tuple5 with the results of all futures
await6<A, B, C, D, E, F>(Future<A> a, Future<B> b, Future<C> c, Future<D> d, Future<E> e, Future<F> f) Future<Tuple6<A, B, C, D, E, F>>
Waits for all futures and returns a future containing a Tuple6 with the results of all futures
await7<A, B, C, D, E, F, G>(Future<A> a, Future<B> b, Future<C> c, Future<D> d, Future<E> e, Future<F> f, Future<G> g) Future<Tuple7<A, B, C, D, E, F, G>>
Waits for all futures and returns a future containing a Tuple7 with the results of all futures
showNativeDialog({required BuildContext context, required String title, required String content, required String textOk, String? textCancel}) Future<bool?>
Displays a dialog above the current contents of the app. On Android devices, this will resolve to a Material dialog, on iOS this to a Cupertino dialog.

Enums

DeviceScreenType
The type of device screen

Typedefs

ComputeCallback<Q, R> = FutureOr<R> Function(Q message)

Exceptions / Errors

NetworkError
Base class for network errors