reload method

Future<T?> reload({
  1. bool remote = true,
  2. Map<String, dynamic>? params,
  3. Map<String, String>? headers,
  4. bool? background,
  5. DataRequestLabel? label,
})

Reload this model through a call equivalent to Adapter.findOne. with the current object/id

Implementation

Future<T?> reload({
  bool remote = true,
  Map<String, dynamic>? params,
  Map<String, String>? headers,
  bool? background,
  DataRequestLabel? label,
}) async {
  return await _adapter.findOne(
    this,
    remote: remote,
    params: params,
    headers: headers,
    background: background,
    label: label,
  );
}