withCallback<E> static method

Future<List<Diff>> withCallback<E>(
  1. DiffCallback<E?> cb, {
  2. bool? spawnIsolate,
})

Implementation

static Future<List<Diff>> withCallback<E>(
  DiffCallback<E?> cb, {
  bool? spawnIsolate,
}) {
  return diff<E?>(
    cb.newList!,
    cb.oldList!,
    areItemsTheSame: cb.areItemsTheSame,
    spawnIsolate: spawnIsolate,
  );
}