Fixed issue which makes a dartanalyzer warning

Closes issue #12
Merge pull request #13 from caffinatedmonkey/type_fix

Fixed issue which makes a dartanalyzer warning