tasksRuntimeUnavailable function

String tasksRuntimeUnavailable(
  1. String task,
  2. String operatingSystem
)

Why task cannot run in this process on operatingSystem (TaskPlatform.operatingSystem): the build bundled no MediaPipe library for it, as happens when the app was built without its package's build hook running.

Implementation

String tasksRuntimeUnavailable(String task, String operatingSystem) =>
    "$task runs on Google's MediaPipe library, which its package's build "
    'hook bundles on $operatingSystem, but this build has none. Build the '
    'app with flutter run or flutter build (or dart run and dart test for a '
    'Dart program), which run the hook.';