baaba_api_handler 2.0.0 copy "baaba_api_handler: ^2.0.0" to clipboard
baaba_api_handler: ^2.0.0 copied to clipboard

A typed, functional HTTP client for Flutter. Wraps Dio with Either-based error handling, token refresh, retries, response caching, and a built-in test double.

130/ 160
pub points
67
downloads

We analyzed this package 24 hours ago, and awarded it 130 pub points (of a possible 160):

Failed report section
Follow Dart file conventions
20 / 30trigger folding of the section

Failed check 0/10 points: Provide a valid pubspec.yaml

  • pubspec.yaml doesn't have a homepage entry.

  • pubspec.yaml doesn't have a repository entry.

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: BSD-3-Clause.

Passed report section
Provide documentation
20 / 20trigger folding of the section

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

301 out of 362 API elements (83.1 %) have documentation comments.

Some symbols that are missing documentation: baaba_api_handler.APICacheDBModel, baaba_api_handler.APICacheDBModel.APICacheDBModel.new, baaba_api_handler.APICacheDBModel.fromMap, baaba_api_handler.APICacheDBModel.id, baaba_api_handler.APICacheDBModel.key.

Passed check 10/10 points: Package has an example

Passed report section
Platform support
20 / 20trigger folding of the section

Passed check 20/20 points: Supports 3 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

  • ✓ macOS

These platforms are not supported:

Package does not support platform `Windows`.

Because:

  • package:baaba_api_handler/baaba_api_handler.dart that imports:
  • package:baaba_api_handler/ts_api_handler.dart that imports:
  • package:baaba_api_handler/src/api_service.dart that imports:
  • package:baaba_api_handler/src/api_cache_helper.dart that imports:
  • package:api_cache_manager/api_cache_manager.dart that imports:
  • package:api_cache_manager/utils/cache_db_helper.dart that imports:
  • package:sqflite/sqflite.dart that declares support for platforms: Android, iOS, macOS.
Package does not support platform `Linux`.

Because:

  • package:baaba_api_handler/baaba_api_handler.dart that imports:
  • package:baaba_api_handler/ts_api_handler.dart that imports:
  • package:baaba_api_handler/src/api_service.dart that imports:
  • package:baaba_api_handler/src/api_cache_helper.dart that imports:
  • package:api_cache_manager/api_cache_manager.dart that imports:
  • package:api_cache_manager/utils/cache_db_helper.dart that imports:
  • package:sqflite/sqflite.dart that declares support for platforms: Android, iOS, macOS.
Package does not support platform `Web`.

Because:

  • package:baaba_api_handler/baaba_api_handler.dart that imports:
  • package:baaba_api_handler/ts_api_handler.dart that imports:
  • package:baaba_api_handler/src/api_service.dart that imports:
  • package:baaba_api_handler/src/api_cache_helper.dart that imports:
  • package:api_cache_manager/api_cache_manager.dart that imports:
  • package:api_cache_manager/utils/cache_db_helper.dart that imports:
  • package:sqflite/sqflite.dart that declares support for platforms: Android, iOS, macOS.
Failed report section
Pass static analysis
30 / 50trigger folding of the section

Failed check 30/50 points: code has no errors, warnings, lints, or formatting issues

WARNING: Returning a 'Future' without 'await' inside a try block.

lib/src/interceptors/token_refresh_interceptor.dart:150:9

    ╷
150 │         return _retryRequest(err, handler);
    │         ^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/interceptors/token_refresh_interceptor.dart

Partially passed report section
Support up-to-date dependencies
40 / 40trigger folding of the section

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

Package Constraint Compatible Latest Notes
api_cache_manager ^1.0.2 1.0.2 1.0.2
dio ^5.10.0 5.11.1 5.11.1
equatable ^2.1.0 2.1.0 3.0.0
fpdart ^1.2.0 1.2.0 1.2.0
internet_connection_checker_plus ^3.1.1 3.1.2 3.1.2
pretty_dio_logger ^1.4.0 1.4.0 1.4.0
Transitive dependencies
Package Constraint Compatible Latest Notes
async - 2.13.1 2.13.1
characters - 1.4.1 1.4.1
collection - 1.19.1 1.19.1
dio_web_adapter - 2.2.2 2.2.2
http - 1.6.0 1.6.0
http_parser - 4.1.2 4.1.2
material_color_utilities - 0.13.0 0.13.1
meta - 1.19.0 1.19.0
mime - 2.1.0 2.1.0
path - 1.9.1 1.9.1
platform - 3.2.0 3.2.0
plugin_platform_interface - 2.1.8 2.1.8
source_span - 1.10.2 1.10.2
sqflite - 2.4.4 2.4.4
sqflite_android - 2.4.4 2.4.4
sqflite_common - 2.5.13 2.5.13
sqflite_darwin - 2.4.4 2.4.4
sqflite_platform_interface - 2.4.2 2.4.2
string_scanner - 1.4.1 1.4.1
synchronized - 3.4.2 3.4.2
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0
vector_math - 2.4.3 2.4.3
web - 1.1.1 1.1.1

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

The constraint `^2.1.0` on equatable does not support the stable version `3.0.0`, that was published 6 days ago.

When equatable is 30 days old, this package will no longer be awarded points in this category.

Try running dart pub upgrade --major-versions equatable to update the constraint.

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

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.23.19, Flutter 3.47.4, Dart 3.13.3.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
0
likes
130
points
67
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A typed, functional HTTP client for Flutter. Wraps Dio with Either-based error handling, token refresh, retries, response caching, and a built-in test double.

Topics

#http #networking #dio #rest #api

License

BSD-3-Clause (license)

Dependencies

api_cache_manager, dio, equatable, flutter, fpdart, internet_connection_checker_plus, pretty_dio_logger

More

Packages that depend on baaba_api_handler