OnFutureBuilder<T> constructor Null safety

const OnFutureBuilder<T>(
  1. {Key? key,
  2. required Future<T> future(
      ),
    1. required Widget onWaiting(
        ),
      1. required Widget onError(
        1. dynamic err,
        2. VoidCallback refresh
        ),
      2. required Widget onData(
        1. T data,
        2. VoidCallback refresh
        )}
      )

      Implementation

      const OnFutureBuilder({
        Key? key,
        required this.future,
        required this.onWaiting,
        required this.onError,
        required this.onData,
      }) : super(key: key);