Validators class

Constructors

Validators()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

featureName(String input) String?
flavorName(String input) String?
Validates a single flavor name. Must be lowercase, alphanumeric + underscores, start with a letter, and not be a reserved word (main, test, or a Dart keyword) — flavor names become Dart enum constants and Gradle product flavors.
flavors(String input) String?
Validates a comma-separated flavors string (e.g. dev,staging,prod). Returns null when valid, or an error message describing the first problem found (invalid name, duplicate, or reserved word).
hexColor(String input) String?
organization(String input) String?
parseFlavors(String input) List<String>
Splits a comma-separated flavors string into a trimmed, non-empty list.
projectName(String input) String?