validate static method

bool validate(
  1. String str
)

Validates str by _defaultValidator or customValidator.

Implementation

static bool validate(String str) =>
    customValidator?.call(str) ?? _defaultValidator(str);