endsWith method

bool endsWith(
  1. Iterable<T> sub
)

check if this ends with sub list

Implementation

bool endsWith(Iterable<T> sub) {
  final a = reversed;
  final b = sub.reversed;

  return a.startsWith(b);
}