getSpaceBefore method
Returns the spacing before each byte according to groups and bytesPerRow.
Implementation
String getSpaceBefore(int i) {
var s = "";
for (var group in groups) {
if (i % bytesPerRow == 0) return "";
if (i % group == 0) {
s += " ";
}
}
return s;
}