The first one is just reformatting the file using default dartfmt.
The second one is the actual fix: mifareBlockLength is the length of the data block. Since response contains error flag in the first byte, we start reading from the 2nd element of the list, so we need to pass mifareBlockLength + 1 as the end parameter to the sublist (the end is exclusive).
This PR contains 2 commits.
dartfmt
.mifareBlockLength
is the length of the data block. Since response contains error flag in the first byte, we start reading from the2nd
element of the list, so we need to passmifareBlockLength + 1
as theend
parameter to the sublist (the end is exclusive).