record<T> method

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

Implementation

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