get<T> method
Implementation
@override
Future<Result<T>> get<T>(IDs ids) async {
try {
assert(StringUtils.instance.isNotBlank(ids.id));
Logger.log(
log: Log.i(
_buildMessage('Attempting to get a record with id ${ids.id}'),
),
);
DocumentSnapshot result = await _collectionPath!.doc(ids.id).get();
return _buildResult(result);
} catch (e, stacktrace) {
return _getErrorLog(
msg: e.toString(),
stacktrace: stacktrace,
);
}
}