getFuture static method Null safety

FutureBuilder getFuture(
  1. Future future,
  2. {Widget onActivity(
      )?,
    1. Widget onResult(
        )?,
      1. Widget onError(
          )?}
        )

        Handles future with widgets or callbacks.