DataScope<T> constructor

const DataScope<T>({
  1. required FutureOr<T> loadData(),
  2. required Widget child,
  3. Key? key,
})

Create an instance.

Implementation

const DataScope({
  required this.loadData,
  required this.child,
  super.key,
});