blvckleg_dart_core 0.0.2
blvckleg_dart_core: ^0.0.2 copied to clipboard
Implementation of base client with token injection, refresh interceptor and REST for platform microservices provided by blvckleg.dev and subdomains.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add blvckleg_dart_coreWith Flutter:
$ flutter pub add blvckleg_dart_coreThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
blvckleg_dart_core: ^0.0.2Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:blvckleg_dart_core/abstract/backend_abstract.dart';
import 'package:blvckleg_dart_core/adapter/login_auth_adapter.dart';
import 'package:blvckleg_dart_core/exception/session_expired.dart';
import 'package:blvckleg_dart_core/interceptor/auth_interceptor.dart';
import 'package:blvckleg_dart_core/models/auth/login_response_model.dart';
import 'package:blvckleg_dart_core/models/auth/login_response_user.dart';
import 'package:blvckleg_dart_core/models/settings/settings_model.dart';
import 'package:blvckleg_dart_core/models/user/user_model.dart';
import 'package:blvckleg_dart_core/service/auth_backend_service.dart';
import 'package:blvckleg_dart_core/settings/settings.dart';
import 'package:blvckleg_dart_core/util/util.dart';