contains method

bool contains(
  1. String search
)

Implementation

bool contains(String search) {
  return code.toLowerCase().contains(search.toLowerCase())
    || name.toLowerCase().contains(search.toLowerCase());
}