isListEqual function

bool isListEqual (
  1. List a,
  2. List b
)

Checks if Lists are equal

Functions (closures) will be ignored

Implementation

bool isListEqual(final List a, final List b) => a.length == b.length &&
    a.where((value) => value is! Function).every((value) => b.contains(value));