getDistanceInfo method
Implementation
@override
DistanceInfo getDistanceInfo(List<String> inputs, {CalculationOptions? options}) {
if (inputs.length != 2) {
throw ArgumentError(
"There should be only two inputs",
);
}
options ??= CalculationOptions.defaultOne();
var result = getLcsInfo(inputs[0], inputs[1]);
return DistanceInfo()
..originalInputs = inputs
..distance = result.lcsMatchedSubSequences!.keys.first.toDouble()
..lcsInfo = result;
}