15 lines
No EOL
312 B
Dart
15 lines
No EOL
312 B
Dart
part of graphql_schema.src.schema;
|
|
|
|
class ValidationResult<T> {
|
|
final bool successful;
|
|
final T value;
|
|
final List<String> errors;
|
|
|
|
ValidationResult._ok(this.value)
|
|
: errors = [],
|
|
successful = true;
|
|
|
|
ValidationResult._failure(this.errors)
|
|
: value = null,
|
|
successful = false;
|
|
} |