updateRecord<T> method

  1. @override
Future<T> updateRecord<T>(
  1. String recordId, {
  2. String? expand,
  3. String? fields,
  4. dynamic body,
})
override

Implementation

@override
Future<T> updateRecord<T>(String recordId,
    {String? expand, String? fields, dynamic body}) async {
  try {
    Client client = Client(
      _baseUrl,
      collectionName: _name,
      expand: expand,
      fields: fields,
      recordId: recordId,
    );
    return await client.patch<T>(body: body);
  } catch (e) {
    rethrow;
  }
}