api_result_kit 1.0.0
api_result_kit: ^1.0.0 copied to clipboard
A typed Result/Error handling kit for Flutter apps. Normalizes errors from FastAPI, Express, and generic REST backends into a consistent ApiResult<T> type, with ready-made widgets for consistent UI er [...]
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add api_result_kitThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
api_result_kit: ^1.0.0Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:api_result_kit/api_result_kit.dart';