Entity constructor

Entity({
  1. Key? key,
  2. Map<String, Value>? properties,
})

Implementation

factory Entity({
  Key? key,
  $core.Map<$core.String, Value>? properties,
}) {
  final $result = create();
  if (key != null) {
    $result.key = key;
  }
  if (properties != null) {
    $result.properties.addAll(properties);
  }
  return $result;
}