posthog_dart 0.1.1
posthog_dart: ^0.1.1 copied to clipboard
Pure-Dart PostHog SDK that works identically on Windows, Linux, Android, iOS, macOS and Web. API-compatible with the official posthog_flutter plugin.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add posthog_dartThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
posthog_dart: ^0.1.1Alternatively, 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:posthog_dart/posthog_dart.dart';