validate method
Implementation
List<String> validate() {
final errors = <String>[];
if (filePath.isEmpty) {
errors.add('Missing required parameter: file_path');
} else if (!p.isAbsolute(filePath)) {
errors.add('file_path must be an absolute path, got: $filePath');
}
if (offset != null && offset! < 1) {
errors.add('offset must be >= 1 (1-based line number)');
}
if (limit != null && limit! < 1) {
errors.add('limit must be >= 1');
}
return errors;
}