cookie_jar 1.0.1

Dart native
Flutter Android iOS

A cookie manager for http requests in Dart, by which you can deal with the complex cookie policy and persist cookies easily.

13
likes
90 / 110
pub points
95 %
popularity

We analyzed this package on Aug 6, 2020, and awarded it 90 pub points (of a possible 110):

Follow Dart file conventions
20 / 20

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

Provide documentation
20 / 20

10/10 points: Package has an example

  • Found example at: example/cookie_jar_example.dart

10/10 points: 20% or more of the public API has dartdoc comments

  • 21 out of 32 API elements (65.6 %) have documentation comments.
Support multiple platforms
10 / 20

10/20 points: Supports 1 of 2 possible platforms (native, js)

Consider supporting multiple platforms:

Package not compatible with runtime js

Because:

  • package:cookie_jar/cookie_jar.dart that imports:
  • package:cookie_jar/src/serializable_cookie.dart that imports:
  • dart:io
Pass static analysis
20 / 30

20/30 points: code has no errors, warnings, lints, or formatting issues

Found 56 issues. Showing the first 2:

INFO: Private field could be final.

lib/src/default_cookie_jar.dart:28:28

   ╷
28 │                         >>>> _domains =
   │ ┌────────────────────────────^
29 │ │       <Map<String, Map<String, Map<String, SerializableCookie>>>>[
30 │ │     <String, Map<String, Map<String, SerializableCookie>>>{},
31 │ │     <String, Map<String, Map<String, SerializableCookie>>>{}
32 │ │   ];
   │ └───^
   ╵

To reproduce make sure you are using pedantic and run dartanalyzer lib/src/default_cookie_jar.dart

INFO: Omit type annotations for local variables.

lib/src/default_cookie_jar.dart:39:5

   ╷
39 │     final List<Cookie> list = <Cookie>[];
   │     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using pedantic and run dartanalyzer lib/src/default_cookie_jar.dart

Support up-to-date dependencies
20 / 20

10/10 points: All of the package dependencies are supported in the latest version

No dependencies.

To reproduce run pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

10/10 points: Package supports latest stable Dart and Flutter SDKs

13
likes
90
pub points
95%
popularity

Publisher

flutterchina.club

A cookie manager for http requests in Dart, by which you can deal with the complex cookie policy and persist cookies easily.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on cookie_jar