differencesAsListAsync method Null safety

Future<ListDiffs<E>> differencesAsListAsync(
  1. Iterable<E> other,
  2. {String? debugName,
  3. required DiffEquality equality,
  4. ListDiffAlgorithm? algorithm}
)

Implementation

Future<ListDiffs<E>> differencesAsListAsync(Iterable<E> other,
    {String? debugName,
    required DiffEquality equality,
    ListDiffAlgorithm? algorithm}) async {
  return await (this.toList().differencesAsync(other.toList(),
      debugName: debugName, equality: equality, algorithm: algorithm));
}