lb_commons 1.0.0 lb_commons: ^1.0.0 copied to clipboard
Shared between Logbot SDK libraries
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add lb_commons
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
lb_commons: ^1.0.0
Alternatively, 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:lb_commons/api_exception.dart';
import 'package:lb_commons/auth/api_key_auth.dart';
import 'package:lb_commons/auth/authentication.dart';
import 'package:lb_commons/auth/http_basic_auth.dart';
import 'package:lb_commons/auth/http_bearer_auth.dart';
import 'package:lb_commons/auth/logbot_http_bearer_auth.dart';
import 'package:lb_commons/auth/oauth.dart';
import 'package:lb_commons/commons.dart';
import 'package:lb_commons/models/query_params.dart';
import 'package:lb_commons/services/logbot_logger.dart';