gmpassos / howler.dart

Dart audio library for the modern web. Dart port of Howler.js (https://github.com/goldfire/howler.js)
MIT License
31 stars 6 forks source link

Invalid argument (onError): Error handler must accept one Object or one Object and a StackTrace as arguments, and return a a valid result: #3

Closed TobiasHeidingsfeld closed 4 years ago

TobiasHeidingsfeld commented 4 years ago

Invalid argument (onError): Error handler must accept one Object or one Object and a StackTrace as arguments, and return a a valid result:

flutter/.pub-cache/hosted/pub.dartlang.org/howler-1.0.4/lib/src/howler_base.dart:2014:8

I think just add an parameter to the error function and things are fine

gmpassos commented 4 years ago

Fixed. Thanks for the pull request