Event constructor

Event({
  1. String? name,
  2. Map<String, String>? properties,
  3. Timestamp? timestamp,
  4. bool? external,
})

Implementation

factory Event({
  $core.String? name,
  $core.Map<$core.String, $core.String>? properties,
  $0.Timestamp? timestamp,
  $core.bool? external,
}) {
  final _result = create();
  if (name != null) {
    _result.name = name;
  }
  if (properties != null) {
    _result.properties.addAll(properties);
  }
  if (timestamp != null) {
    _result.timestamp = timestamp;
  }
  if (external != null) {
    _result.external = external;
  }
  return _result;
}