Introducing new `Event` class that can be send via `analytics.send(Event event)` (#114)

* Introducing new `Events` class that can be accessed via `analytics.send.<eventName>`

* Refactor to use pass `Event` class to `send` method

Treating the `Event` class now as a data class that will be passed to the http client to be sent instead

* Refactor `setTelemetry` to use `Event. analyticsCollectionEnabled`

* Add event params for existing `DashEvent`'s

* Clean up + required parameters for `Event` constructors

* Order members fix

* Fix tests to use new `.send(...)` method

* Removing deprecated enums from `DashTool`

* Bump version to `3.0.0`

* Prevent `Event` class from being extended

* Documentation example for `Event` class

* Fix lint

* Make filesystem required for test constructor

* Change to wip version
12 files changed
tree: 5e86e58edc33be2ed2275b8b8db0a634b414aa98
  1. .github/
  2. pkgs/
  3. .gitignore
  4. CODEOWNERS
  5. CONTRIBUTING.md
  6. LICENSE
  7. README.md
README.md

Overview

This repository is home to tooling related Dart packages. Generally, this means packages published through the tools.dart.dev publisher that don't naturally belong to other topic monorepos (like dart-lang/build, dart-lang/test, or dart-lang/shelf).

Packages

PackageDescriptionVersion
cli_configA package to take config values from configuration files, CLI arguments, and environment variables.pub package
graphsGraph algorithms that do not specify a particular approach for representing a Graph.pub package
unified_analyticsA package for logging analytics for all Dart and Flutter related tooling to Google Analytics.pub package

Publishing automation

For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.

For additional information about contributing, see our contributing page.