DiffView.fromText constructor
DiffView.fromText(
- String diffText, {
- Key? key,
- DiffColors? colors,
- bool showLineNumbers = true,
Create from raw diff text.
Implementation
factory DiffView.fromText(
String diffText, {
Key? key,
DiffColors? colors,
bool showLineNumbers = true,
}) {
return DiffView(
key: key,
hunks: parseUnifiedDiff(diffText),
colors: colors,
showLineNumbers: showLineNumbers,
);
}