updateProject method

Future<void> updateProject(
  1. String projectId, {
  2. String? name,
  3. String? baseLocale,
  4. List<String>? targetLocales,
  5. String? description,
})

Implementation

Future<void> updateProject(
  String projectId, {
  String? name,
  String? baseLocale,
  List<String>? targetLocales,
  String? description,
}) async {
  await _dio.patch(
    '$_baseUrl/projects/$projectId',
    data: {
      if (name != null) 'name': name,
      if (baseLocale != null) 'baseLocale': baseLocale,
      if (targetLocales != null) 'targetLocales': targetLocales,
      if (description != null) 'description': description,
    },
  );
}