getById method
Future<OutputType?>
getById(
- Object id, {
- Options? options,
- CancelToken? cancelToken,
- void onReceiveProgress()?,
- bool caching = false,
override
Implementation
@override
Future<OutputType?> getById(
Object id, {
Options? options,
CancelToken? cancelToken,
void Function(int total, int finish)? onReceiveProgress,
bool caching = false,
}) async {
final response = await super.getById(
id,
options: options,
cancelToken: cancelToken,
onReceiveProgress: onReceiveProgress,
);
if (response == null) return null;
if (caching) dbSet.insertRow(response);
rows.add(response);
return response;
}