apn_actions library

Enums

MessageType

Extensions

DateFormatEx on DateTime

Properties

actionStream Stream<IAction>
no setter
globalErrorProvider → AutoDisposeStateProvider<DomainException?>
final
globalLoadingProvider → AutoDisposeStateProvider<bool>
final
verboseActionLogging bool
Used to enable verbose logging of actions, this is useful for debugging and testing. This is disabled by default.
getter/setter pair

Functions

useAction<R, T extends IAction<R>>(T action, {bool when = true, void onCompleted(R result)?, List<Object> keys = const <Object>[]}) → void
useListenToError<T extends V, V>(WidgetRef ref, AutoDisposeStateProvider<V?> provider, void callback(Toaster toaster, T error)) → void
useVoidAction(IAction<void> action, {bool when = true, VoidCallback? onCompleted, List<Object> keys = const <Object>[]}) → void

Typedefs

ErrorBuilder = Widget Function(BuildContext context, DomainException exception)
EventGetter<Input, Output extends Entity> = PaginatedAction<Input, Output> Function(WidgetRef ref)
HeaderBuilder<T> = (Widget? Function(BuildContext context, List<T> data)?)
ItemBuilder<T> = Widget Function(BuildContext context, T entity, T? previous)