validate method
Validates the command Parameters args
before execution using the defined schema.
- args the parameters (arguments) to validate using this command's schema.
Returns an array of ValidationResults or an empty array (if no schema is set).
See Parameters
See
ValidationResult
Implementation
@override
List<ValidationResult> validate(Parameters args) {
if (schema_ != null) return schema_!.validate(args);
return [];
}