AsyncTaskChannelMessageHandler typedef

AsyncTaskChannelMessageHandler = void Function(dynamic message, bool fromExecutingContext)

An AsyncTaskChannel message handler.

  • message the message.
  • fromExecutingContext if true, indicated that the message comes from the executing context (from AsyncTask.run). If false indicates that the message comes from outside the task.

Implementation

typedef AsyncTaskChannelMessageHandler = void Function(
    dynamic message, bool fromExecutingContext);