startsWith static method

Validator startsWith(
  1. String prefix, {
  2. String? message,
})

Ensures the value starts with a specific prefix.

Implementation

static Validator startsWith(String prefix, {String? message}) =>
    Validator._()..startsWith(prefix, message: message);