## Record events

To record an event, create an `AnalyticsEvent` and call `Amplify.Analytics.recordEvent()`:

```dart
Future<void> trackEventsWithProperties() async {
  final event = AnalyticsEvent('test');

  event.customProperties
    ..addBoolProperty('boolKey', true)
    ..addDoubleProperty('doubleKey', 10)
    ..addIntProperty('intKey', 10)
    ..addStringProperty('stringKey', 'stringValue');

  await Amplify.Analytics.recordEvent(event: event);
}
```
