createKey method
Implementation
Future<void> createKey({
required String keyPath,
required Map<String, dynamic> valuesByLocale,
String? note,
}) async {
final row = await drafts.createKey(
keyPath: keyPath,
valuesByLocale: valuesByLocale,
note: note,
);
selection.openRow(row.keyPath);
await selection.selectLocale(defaultEditorLocale);
await activity.showKey(row.keyPath);
}