AsyncSimpleTask constructor Null safety

AsyncSimpleTask(
  1. Future func(
      ),
    1. {dynamic onCancel(
        )?}
      )

      Implementation

      AsyncSimpleTask(this.func, {this.onCancel});