getFirst method

T? getFirst(
  1. ReplaceValidator<T> test
)

Implementation

T? getFirst(ReplaceValidator<T> test) {
  for (final item in this) {
    if (test(item)) return item;
  }
  return null;
}