metal 0.0.1
metal: ^0.0.1 copied to clipboard
A flutter http client for easy use and state management when working with rest apis
Language: English
Metal #
A powerful Http client for Dart, which supports Request Data Types, Interceptors, Global configuration, FormData, Request Cancellation, File downloading, Timeout etc.
Get started #
Add dependency #
dependencies:
metal: ^0.0.1
Super simple to use #
import 'package:metal/metal.dart';
final Dio uri = Dio(
BaseOptions(
baseUrl: 'https://jsonplaceholder.typicode.com/posts/1',
),
);
final postMetal = Metal.explore(uri: uri, ore: PostOre());
await postMetal.mine.get()
.then((value) {
})
.catchError((err) {
err as MetalError;
return;
});
Table of contents #
Copyright & License #
This open source project authorized by https://wavercode.com, and the license is MIT.
Features and bugs #
Please file feature requests and bugs at the issue tracker.