hightouch_events 1.0.1 hightouch_events: ^1.0.1 copied to clipboard
The hassle-free way to add Hightouch Events to your Flutter app.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add hightouch_events
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
hightouch_events: ^1.0.1
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:hightouch_events/analytics.dart';
import 'package:hightouch_events/analytics_pigeon.dart';
import 'package:hightouch_events/analytics_platform_interface.dart';
import 'package:hightouch_events/analytics_web.dart';
import 'package:hightouch_events/client.dart';
import 'package:hightouch_events/errors.dart';
import 'package:hightouch_events/event.dart';
import 'package:hightouch_events/event.g.dart';
import 'package:hightouch_events/flush_policies/count_flush_policy.dart';
import 'package:hightouch_events/flush_policies/flush_policy.dart';
import 'package:hightouch_events/flush_policies/flush_policy_executor.dart';
import 'package:hightouch_events/flush_policies/startup_flush_policy.dart';
import 'package:hightouch_events/flush_policies/timer_flush_policy.dart';
import 'package:hightouch_events/logger.dart';
import 'package:hightouch_events/map_transform.dart';
import 'package:hightouch_events/native_context.dart';
import 'package:hightouch_events/plugin.dart';
import 'package:hightouch_events/plugins/destination_metadata_enrichment.dart';
import 'package:hightouch_events/plugins/event_logger.dart';
import 'package:hightouch_events/plugins/hightouch_destination.dart';
import 'package:hightouch_events/plugins/inject_context.dart';
import 'package:hightouch_events/plugins/inject_token.dart';
import 'package:hightouch_events/plugins/inject_user_info.dart';
import 'package:hightouch_events/plugins/queue_flushing_plugin.dart';
import 'package:hightouch_events/state.dart';
import 'package:hightouch_events/state.g.dart';
import 'package:hightouch_events/timeline.dart';
import 'package:hightouch_events/utils/chunk.dart';
import 'package:hightouch_events/utils/http_client.dart';
import 'package:hightouch_events/utils/lifecycle/fgbg.dart';
import 'package:hightouch_events/utils/lifecycle/lifecycle.dart';
import 'package:hightouch_events/utils/lifecycle/widget_observer.dart';
import 'package:hightouch_events/utils/queue.dart';
import 'package:hightouch_events/utils/store/impl.dart';
import 'package:hightouch_events/utils/store/io.dart';
import 'package:hightouch_events/utils/store/store.dart';
import 'package:hightouch_events/utils/store/unsupported.dart';
import 'package:hightouch_events/utils/store/web.dart';
import 'package:hightouch_events/version.dart';