PrepareDioExceptionExtension extension

Extension methods for preparing DioException handling functions.

on

Methods

prepareDioFunction({BuildContext? context, required DioExceptionType type, required DioExceptionHandlerModel? exceptionHandlers}) → (bool Function(DioException exception)?)
Prepares a DioException handling function based on the provided context and exception type.
prepareExceptionFunction({ExceptionExplanationModel? exceptionExplanationModel, BuildContext? context}) → (bool Function(Exception exception)?)
Prepares a general Exception handling function based on the provided context and exception model.
prepareFormatExceptionFunction({ExceptionExplanationModel? exceptionExplanationModel, BuildContext? context}) → (bool Function(FormatException exception)?)
Prepares a FormatException handling function based on the provided context and exception model.
prepareJsonExceptionFunction({ExceptionExplanationModel? exceptionExplanationModel, BuildContext? context}) → (bool Function(JsonUnsupportedObjectError exception)?)
Prepares a JsonUnsupportedObjectError handling function based on the provided context and exception model.