isStartsWithConditional method
Conditional startsWith check.
Returns true if isPositiveSearch is true and the string starts with find,
or if isPositiveSearch is false and the string does NOT start with find.
Implementation
bool isStartsWithConditional(String? find, {required bool isPositiveSearch}) {
if (isEmpty || find == null || find.isEmpty) return false;
return isPositiveSearch ? startsWith(find) : isNotStartsWith(find);
}