update method

Future<Note> update(
  1. int noteId,
  2. String body
)

Implementation

Future<Note> update(int noteId, String body) async {
  final uri = _project.buildUri(
    ['issues', _iid, 'notes', noteId.toString()],
    queryParameters: {"body": body},
  );

  final json = await _gitLab.request(uri, method: HttpMethod.put)
      as Map<String, dynamic>;

  return Note.fromJson(json);
}