part of graphql_schema.src.schema; class ValidationResult { final bool successful; final T value; final List errors; ValidationResult._(this.successful, this.value, this.errors); ValidationResult._ok(this.value) : errors = [], successful = true; ValidationResult._failure(this.errors) : value = null, successful = false; ValidationResult _asFailure() { return new ValidationResult._(false, value, errors); } }