ApiValidationResult class final
The result of POST /v1/validate: whether the code is render-ok and every
diagnostic found.
- Annotations
-
- @immutable
Constructors
-
ApiValidationResult({required bool ok, required List<
ApiCodeDiagnostic> diagnostics}) -
Creates a result.
const
-
ApiValidationResult.fromJson(Map<
String, Object?> json) -
Reads a result from its decoded JSON
json.factory
Properties
-
diagnostics
→ List<
ApiCodeDiagnostic> -
Every problem found, in source order.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- ok → bool
-
True when no diagnostic is an error, so the snippet is safe to render.
final
- 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