Whether haystack starts with a string, or with one of a list.
haystack
static bool startsWith(String haystack, Object needles) => _needles(needles).any((n) => n.isNotEmpty && haystack.startsWith(n));