flutter_network_layer_core 0.7.1
flutter_network_layer_core: ^0.7.1 copied to clipboard
Core library for flutter_network_layer. Includes base classes of flutter_network_layer project.
0.7.0 #
๐ Features #
- Feat: Allows handling error response bodies.
- ResponseResult and RequestCommand have one more generic type representing the error response type.
- Create IgnoredResponseModel as a ResponseModel implementation provided by the core library. Useful when the response payload is not relevant.
๐ Refactor #
- Refactor: remove payload and headers from RequestCommand.toLogString() method. It can be still overridden by the subclass.
0.6.0 #
๐ Features #
- Feat: Create ResponseModelFactory and subclasses to reduce ResponseModel. No more sample response model.
- Remove JsonResponseModel and CustomResponseModel classes. ResponseModes can be extended directly.
- Create abstract classes 'JsonResponseFactory' and 'CustomResponseFactory' to extend for each response model.
- Update RequestCommand with 'responsefactory' field instead of 'sampleModel'.
0.5.0 #
0.4.1 #
- Fix:
network_error.dartfile is exported influtter_network_layer_core.dartfile.
0.4.0 #
- Logging components are added to the core library. The implementations must provide an
onLogfunction. - Error types are created for the errors occurs in the network invokers.
0.3.0 #
whenandwhenAsyncfunctions ofResponseResultclass are updated to be able to return a custom data.
0.2.1 #
- Readme updated.
0.2.0 #
IRequestCommandinterface turned intoRequestCommandabstract class.IResponseModelinterface turned intoJsonResponseModelandCustomResponseModelabstract classes.- In product level, requests and responses have to be created by extending these abstract classes.
0.1.1 #
- Readme updated.
- Example project updated.
0.1.0 #
- Alpha release
0.0.1 #
- initial release.