ConvertReport class final
One input's report.
Collected as the converter goes, so it is the one mutable thing in a
conversion: every reader appends to it rather than threading a list back
through each return. toJson is what --report writes, sorted where
order is not meaning, so two runs over the same input write the same
bytes.
Constructors
- ConvertReport(String input, String format)
-
The report of
input, read asformat, with nothing collected yet.
Properties
-
Who made the model, as its file names them (
DocumentAsset.author); null when it does not say.getter/setter pair - copyright ↔ String?
-
The model's copyright notice (
DocumentAsset.copyright); null when it has none.getter/setter pair -
dropped
→ List<
String> -
Each thing the source said that did not arrive, with the reason.
final
- error ↔ String?
-
Why it failed, when it did.
getter/setter pair
- format → String
-
What it was read as:
gltf,unity-prefab,godot-sceneand so on.final - hashCode → int
-
The hash code for this object.
no setterinherited
- input → String
-
The input as it was named on the command line, or found by a glob.
final
- license ↔ String?
-
The terms the model may be used on, as its file states them
(
DocumentAsset.license); null when it does not say, which is not the same as free to use.getter/setter pair -
mapped
→ List<
String> -
Each thing the source said that arrived in the output, in a line.
final
- outcome ↔ ConvertOutcome
-
How it ended. ConvertOutcome.converted until something says
otherwise.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
warnings
→ List<
String> -
What arrived, but not exactly: an approximation, a guess, a default.
final
-
written
→ List<
String> -
Every file this input produced, relative to the output directory.
final
Methods
-
describe(
) → String - The report as the terminal shows it.
-
drop(
String what, String why) → void -
Records
whatas dropped, because ofwhy. -
fail(
String message, {ConvertOutcome as = ConvertOutcome.failed}) → void -
Marks the input failed with
message. -
map(
String what) → void -
Records
whatas mapped. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
The report as
--reportwrites it. -
toString(
) → String -
A string representation of this object.
inherited
-
warn(
String what) → void - Records an approximation.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited