Changed type of _currentFrame as it can be a double too

I ran across this error in the Dart Editor as the debugger showed me an exception on line 24 of this file. As the comment already says, the value may not to have to be a whole number, so I changed _currentFrame from type integer to type number. This fixed the error message for me.