dcc_toolkit library
Classes
- AuthenticationFailedError
- User not authenticated error
- BaseError
- Interface for the errors that could be returned
-
BlocfulWidget<
BLOC extends BlocPresentationMixin< STATE, EVENT> , STATE, EVENT> -
A widget that wraps your UI in a
BlocPresentationListenerand aBlocConsumerto be able to handle all events simultaniously - BoekwerkDecorator
- Decorates a KatjasBoekwerk with KatjasKleurplaat colors.
- BoltCharge
- Interface for creating BoltCharges to power the BoltLogger
- BoltLogger
- Super charge your logging and zap logs like Zeus with the BoltLogger.
- BoltLoggerView
- A widget that displays the logs stored in the MemoryCharge.
- ColorConverter
- A class that implements JsonConverter to convert Color objects to and from JSON.
- ColorGroup
- Group of colors defined for KatjasKleurplaat.
- DateTimeConverter
- DateTimeConverter that parses and formats dates in the selected format. For example:
- DebugConsoleCharge
- A BoltCharge that logs output to the console with ANSI color support.
- DeviceSizes
- Device sizes for testing.
-
DialogAction<
T> - A dialog action which is used to show the actions of a native dialog. Tapping a action will also close the dialog.
-
Failure<
T> - Class representing a failed result.
- FileCharge
- A BoltCharge that logs output to a file.
- HandschriftColorGroup
- Group of colors defined for KatjasKleurplaat.
- HandschriftDecorator
- Decorates a Handschrift with KatjasKleurplaat colors.
- HandschriftSurfaceGroup
- Group of colors defined for surfaces in KatjasKleurplaat.
- JsonSerializableConverter
- JsonSeriablizableConverter Converter for chopper to convert json response to a dart object using json_serializable. Based of: https://hadrien-lejard.gitbook.io/chopper/faq#write-a-custom-jsonconverter
- KatjasKleurplaat
- Group of colors defined for KatjasKleurplaat.
- Margins
- MemoryCharge
- A BoltCharge that stores logs in memory. This will be used for viewing logs in the app. With the BoltLoggerView widget.
- NoInternetError
- The device is not connected error
- Paddings
-
PaginatedScrollView<
T> - A widget that displays a list of items with pagination.
-
PaginationInterface<
T> - Interface for pagination which is used on your bloc state.
-
PaginationState<
T> - State for pagination.
- Radiuses
-
Result<
T> - Result class to handle success and failure states.
- ServerError
- Http client error
- Sizes
-
Success<
T> - Class representing a successful result.
- SurfaceGroup
- Group of colors defined for surfaces in KatjasKleurplaat.
- UnknownError
- Unknown error
- ZapEvent
-
A zap event that contains the lines of a log record and the origin
LogRecord.
Enums
- RefreshType
- The type of refresh event.
Mixins
-
PaginationMixin<
T, S extends PaginationInterface< T> > - Mixin for pagination.
- RefreshStreamMixin
- A mixin that provides a stream of update events.
Extensions
- BoxConstraintsX on BoxConstraints
- Extension for BoxConstraints to copy the size.
- ColorFilterExtension on Color
- Extension on Color to convert it to ColorFilter.
-
Insert
on Iterable<
T> - Insert additional value into iterables.
- LinkStyle on TextTheme
- LinkStyle extension for TextTheme.
- MergeMargins on SizedBox
- TextStyleX on TextStyle
- Extensions for TextStyle.
- ThemingExtensions on BuildContext
- Extension for BuildContext to get theme related data.
- ZapExtension on Object
- Extension to zap messages.
- ZapStackTraceExtension on StackTrace
- StackTrace extension methods.
Functions
-
catchEventIn<
C extends BlocPresentationMixin< (S, E> , S, E>C cubit, List< E> events) → C -
Catch events from a
BlocPresentationMixinand add them to a list. -
showNativeDialog<
T> (BuildContext context, {required String title, required List< DialogAction< actions, required String content}) → Future<T> >T?> - A native dialog which shows a CupertinoAlertDialog on iOS and a AlertDialog on Android.
-
tryCall<
S> (FutureOr< S> fn(), {Future<Result< onError(Exception error)?}) → Future<S> >Result< S> > -
Executes the given API call
fn. When the call succeeds, Result.success is returned with the response. When the call fails the optionalonErroris executed and the exceptions are handled. If there is noonErrorprovided, an error of type BaseError is returned in Result.failure.
Typedefs
-
JsonFactory<
T> = T Function(Map< String, dynamic> json) - Method signature for a function that creates a dart object from a json map.
- NoContent = dynamic
- A type representing an empty response body.
- SingleBoolFunc = void Function(bool)
- Single bool function is clear enough.
Exceptions / Errors
- JsonConverterException
- Thrown when a json response cannot be converted to the expected type.