retrofit 0.3.0 copy "retrofit: ^0.3.0" to clipboard
retrofit: ^0.3.0 copied to clipboard

outdated

retrofit.dart is an dio client generator using source_gen and inspired by Chopper and Retrofit.

Changelog #

0.2.3 #

  • Added optional parameter fileName in @Field annotation for custom file name

0.2.2 #

  • add example

0.2.0 #

  • Added @Extra to pass extra options to dio requests, response, transformer and interceptors.

    Example :

    @http.POST('/path/')
    @dio.Extra({'my_key':'my_value'})
    Future<String>> myMethod();
    
  • Fixed general dart style and code conventions

  • Automatically null check with ArgumentError.checkNotNull for required parameters

  • Now SuperClasses can use forwarding/redirecting constructors instead of static instance() method

    Example :

    @RestApi(baseUrl: "https://httpbin.org/")
    abstract class RestClient {
        /// Forwarding constructor
        factory RestClient([Dio dio]) = _RestClient;
    }
    

0.1.0 #

  • fix health issues

0.0.1 #

  • init
1654
likes
0
pub points
99%
popularity

Publisher

verified publishermings.in

retrofit.dart is an dio client generator using source_gen and inspired by Chopper and Retrofit.

Homepage

License

unknown (LICENSE)

Dependencies

meta

More

Packages that depend on retrofit