createKey method

Future<CatalogRow> createKey({
  1. required String keyPath,
  2. required Map<String, dynamic> valuesByLocale,
  3. String? note,
})

Implementation

Future<CatalogRow> createKey({
  required String keyPath,
  required Map<String, dynamic> valuesByLocale,
  String? note,
}) async {
  final row = await _client.addKey(
    keyPath: keyPath,
    valuesByLocale: valuesByLocale,
    note: note,
    markGreenIfComplete: true,
  );
  _queue.upsertRow(row);
  await _queue.refreshSummary();
  return row;
}