Please type this as `String`. Also, for this, I think it's a little more idiomatic to prefer string interpolation:

    '${sha} ${head} ${name}'

Perhaps also add a toString() to the class, for debugging?

    String toString() => getPktLine();