文件名称:Android代码-More Fun http rest API work for Flutter
文件大小:22KB
文件格式:ZIP
更新时间:2022-08-25 20:48:19
Android代码
Cosmic Simple work with REST JSON API for DART Usage A simple usage example: import 'package:http/http.dart' as http; import 'package:cosmic/converters/cosmic_converters.dart'; import 'package:cosmic/annotations/cosmic_annotations.dart'; import 'package:cosmic/cosmic.dart' as Cosmic; class Fixer { String base; String date; Map rates; } part 'fixer.g.dart'; @Client( "http://api.fixer.io", converter: const JsonConverter() ) class FixerClient extends Cosmic.Client with _$FixerCli
【文件预览】:
Cosmic-master
----bin()
--------generate.dart(2KB)
----example()
--------cosmic_example.dart(1KB)
--------clients()
--------entities()
----analysis_options.yaml(394B)
----test()
--------cosmic_test.dart(469B)
----LICENSE(1KB)
----cosmic.iml(596B)
----build.yaml(314B)
----.gitignore(210B)
----pubspec.yaml(475B)
----CHANGELOG.md(280B)
----lib()
--------generateor.dart(4KB)
--------annotations()
--------cosmic_lib.dart(595B)
--------cosmic.dart(717B)
--------converters()
--------src()
----README.md(2KB)