appbase library
Classes
- ApiBase
-
ApiResource<
TData> -
ApiResponse<
TResult> - BaseBloc
- Base class for business logic components.
-
Collection<
Item> - Interface for collections.
-
CollectionAdapter<
Item> -
CollectionController<
Item> -
CollectionMapper<
InternalItem, Item> - Maps collection elements while querying.
-
CollectionStateModel<
Item> - CopyWith
- Annotation for generating copyWith methods.
-
ErrorState<
T> - ErrorText
- FormData
-
ListApiResource<
TData, TId> - LoadingSpinner
-
LoadingState<
T> - MapTransferBean
- Bean for use with simple Map<String, dynamic> objects.
-
PagedCollectionController<
Item> - Queries collection in a paged manner.
-
PagedCollectionModel<
Item> -
ParameterizedCollection<
Item> -
PropertyBuilder<
TValue> - Provides an easy wrapper for a builder presenting the value of a PropertyState stream.
-
PropertyState<
T> - Implements the most common use case for states.
-
SequentialCollectionController<
Item> - Controls collection querying in a lazy sequential manner.
-
SequentialCollectionModel<
Item> - Service
- Base class for IoC services.
- ServiceHost
- IoC container
-
SingleObjectApiResource<
TData> -
SliverCollectionBuilder<
Item> -
StateBuilder<
TState> -
TableCollectionBuilder<
Item> -
TransferBean<
T> - TransferId
- Annotation for marking the ID-field of a TransferObject.
- TransferObject
- Transfer object class annotation.
-
TransferObjectBase<
Id> - Interface used internally to detect transfer objects.
-
ValueState<
T>
Functions
-
decodeEnum<
T> (dynamic raw, List< T> values) → T -
decodeEnumNullable<
T> (dynamic raw, List< T> values) → T? -
decodeList<
T> (dynamic raw, T decoder(dynamic)) → List< T> -
decodeStringMap<
V> (dynamic raw, V decoder(dynamic)) → Map< String, V> -
decodeTyped<
T> (dynamic raw) → T -
decodeTypedNullable<
T> (dynamic raw) → T? -
encodeEnum<
T> (T value) → String -
encodeEnumNullable<
T> (T? value) → String? -
encodeJsonString(
dynamic value) → String -
encodeList<
T> (List< T> ? value, dynamic encoder(T)) → List -
encodeStringMap<
V> (Map< String, V> ? value, dynamic encoder(V)) → Map<String, dynamic> -
encodeTyped<
T> (T? value) → dynamic -
orNull<
T> (dynamic obj) → T? -
register<
T extends Service> (T service) → void - Convenience function for registering a service on the ServiceHost singleton instance.
-
resolve<
T extends Service> () → T - Convenience function for resolving a service in the ServiceHost singleton instance.
Typedefs
- ErrorBuilder = Widget Function(BuildContext context, dynamic error)
-
TableRowBuilder<
Item> = DataRow Function(BuildContext context, Item item) -
ValueBuilder<
Value> = Widget Function(BuildContext context, Value value)
Exceptions / Errors
- ApiError
- Base error for when DataHub code APIs are used incorrectly by user code.
- ApiException
- Base exception for when things go wrong at runtime inside the DataHub API framework.
- StatusCodeException