NyFutureBuilder<T> constructor

const NyFutureBuilder<T>({
  1. Key? key,
  2. required Future<T>? future,
  3. required Widget child(
    1. BuildContext context,
    2. T? data
    ),
  4. LoadingStyle? loadingStyle,
  5. Widget onError(
    1. AsyncSnapshot snapshot
    )?,
})

Implementation

const NyFutureBuilder(
    {super.key,
    required this.future,
    required this.child,
    this.loadingStyle,
    this.onError});