addCharacter method
void
addCharacter(
- String character
)
override
Implementation
@override
void addCharacter(String character) {
if (character == "t") {
parserController.addPropertyChunk<bool>(
propertyPath: propertyPath,
chunk: true,
);
// addPropertyChunk already completes the controller
} else if (character == "f") {
parserController.addPropertyChunk<bool>(
propertyPath: propertyPath,
chunk: false,
);
// addPropertyChunk already completes the controller
} else if (character == "," || character == "}" || character == "]") {
isDone = true;
onComplete?.call();
return;
}
}