NyFutureBuilder<T> constructor
const
NyFutureBuilder<T> ({
- Key? key,
- required Future<
T> ? future, - required Widget child(
- BuildContext context,
- T data
- Widget? loading,
- Widget onError(
- AsyncSnapshot snapshot
Implementation
const NyFutureBuilder(
{Key? key,
required this.future,
required this.child,
this.loading,
this.onError})
: super(key: key);