Nimphelos class
A class providing methods for managing service calls and handling exceptions.
- Inheritance
- Mixed-in types
- Available extensions
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
fetchData<
T> ({required Future< T> response(), BuildContext? context, bool activeAlert = true, bool activeWillAlwaysWork = true, bool generalFunction<E>(E? exception)?, dynamic willAlwaysWork<E>(E exception)?, DioExceptionHandlerModel? exceptionDioHandlers, JsonExceptionHandlerModel? exceptionJsonHandlers, FormatExceptionHandlerModel? exceptionFormatHandlers, ExceptionHandlerModel? exceptionHandlers}) → Future<NimphelosModel< T, dynamic> > -
Fetches data from a service and returns a NimphelosModel containing the result.
override
-
getDioExceptionHandler(
{required DioException e, required DioExceptionHandlerModel? exceptionHandlers}) → bool? Function(DioException exception)? -
Available on Nimphelos, provided by the GetDioExceptionHandlerExtension extension
Retrieves the Dio exception handling function based on the provided DioException. -
getExceptionHandler(
{required ExceptionHandlerModel? exceptionHandlers}) → bool? Function(Exception exception)? -
Available on Nimphelos, provided by the GetExceptionHandlerExtension extension
Returns the general exception handler function. -
getFormatExceptionHandler(
{required FormatExceptionHandlerModel? exceptionHandlers}) → bool? Function(FormatException exception)? -
Available on Nimphelos, provided by the GetFormatExceptionHandlerExtension extension
Retrieves the JSON Format exception handling function for FormatException. -
getJsonExceptionHandler(
{required JsonExceptionHandlerModel? exceptionHandlers}) → bool? Function(JsonUnsupportedObjectError exception)? -
Available on Nimphelos, provided by the GetJsonExceptionHandlerExtension extension
Retrieves the JSON exception handling function for JsonUnsupportedObjectError. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
prepareDioFunction(
{BuildContext? context, required DioExceptionType type, required DioExceptionHandlerModel? exceptionHandlers}) → bool Function(DioException exception)? -
Available on Nimphelos, provided by the PrepareDioExceptionExtension extension
Prepares a DioException handling function based on the provided context and exception type. -
prepareExceptionFunction(
{ExceptionExplanationModel? exceptionExplanationModel, BuildContext? context}) → bool Function(Exception exception)? -
Available on Nimphelos, provided by the PrepareDioExceptionExtension extension
Prepares a general Exception handling function based on the provided context and exception model. -
prepareFormatExceptionFunction(
{ExceptionExplanationModel? exceptionExplanationModel, BuildContext? context}) → bool Function(FormatException exception)? -
Available on Nimphelos, provided by the PrepareDioExceptionExtension extension
Prepares a FormatException handling function based on the provided context and exception model. -
prepareJsonExceptionFunction(
{ExceptionExplanationModel? exceptionExplanationModel, BuildContext? context}) → bool Function(JsonUnsupportedObjectError exception)? -
Available on Nimphelos, provided by the PrepareDioExceptionExtension extension
Prepares a JsonUnsupportedObjectError handling function based on the provided context and exception model. -
showAlertDialog(
BuildContext context, String title, String content, String buttonText) → bool -
Show an alert dialog with a title and content.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited