dart_network_layer_core

GitHub | pub.dev

Core contracts and schema abstractions for Dart Network Layer.

Features

  • Decoupled Architecture: Define your network commands entirely independent of any specific HTTP package.
  • Functional Error Handling: Safely map responses using the NetworkResult<T> hierarchy.
  • Schema System: Flexible Schema and SchemaFactory interfaces for data serialization and deserialization.
  • File Support: Abstract definitions for handling multipart uploads and binary responses.

Guide Status

The old README walkthrough has been intentionally invalidated. Use the maintained docs in the root docs/ folder:

What This Package Provides

  • INetworkInvoker contract (send API)
  • RequestCommand<T> request definition model
  • Schema and SchemaFactory abstractions
  • NetworkResult<T> response result hierarchy

For a production-ready implementation, use dart_network_layer_dio.

License

Released under the MIT License.