xinthink / flt_worker

Schedule & run Dart code in the background on both Android & iOS
MIT License
28 stars 8 forks source link

migrated to dart 2.12 with null-safety #8

Open bjartebore opened 3 years ago

bjartebore commented 3 years ago

In relation to #7

bettysteger commented 3 years ago

@bjartebore i am new to dart and flutter and everything, i am using your fork, and got this when doing enqueueWorkIntent(WorkIntent(....))

Unhandled Exception: type 'Future<dynamic>' is not a subtype of type 'Future<bool>' in type cast
#0      submitTaskRequest
package:flt_worker/…/background_tasks/background_tasks.dart:11

Does it work for you?

It uses the fork as specified in my pubspec.yaml:

  flt_worker:
    git:
      url: git://github.com/bjartebore/flt_worker.git
      ref: null_safety