reload method

Future<T?> reload({
  1. bool? remote,
  2. Map<String, dynamic>? params,
  3. Map<String, String>? headers,
})

Re-fetch this model through a call equivalent to Repository.findOne. with the current object/id

Requires this model to be initialized.

Implementation

Future<T?> reload({
  bool? remote,
  Map<String, dynamic>? params,
  Map<String, String>? headers,
}) async {
  _assertInit('reload');
  return await remoteAdapter.findOne(
    this,
    remote: remote,
    params: params,
    headers: headers,
  );
}