removeFirstWhere method

int? removeFirstWhere(
  1. ReplaceValidator<T> f
)

Implementation

int? removeFirstWhere(ReplaceValidator<T> f) {
  for (var i = 0; i < length; i++) {
    if (f(this[i])) {
      removeAt(i);
      return i;
    }
  }
  return null;
}