Update library

update to match newer dart version
update usage of const
Merge pull request #10 from Adracus/master

Update library