isContainedIn static method

bool isContainedIn({
  1. required List container,
  2. required List contained,
})

Implementation

static bool isContainedIn({
  required List<dynamic> container,
  required List<dynamic> contained,
}) {
  List<dynamic> matches = contained
      .where(
        (x) => container.contains(x),
      )
      .toList();
  return matches.length == contained.length;
}