NeatProvider<S> constructor

NeatProvider<S>({
  1. Key? key,
  2. required S initialState,
  3. bool? lazy,
  4. void onChangeCallback(
    1. Change<S> change
    )?,
  5. Widget? child,
})

Implementation

NeatProvider({
  Key? key,
  required S initialState,
  bool? lazy,
  void Function(Change<S> change)? onChangeCallback,
  Widget? child,
}) : super(
        key: key,
        lazy: lazy,
        create: (_) => NeatState<S>(
          initialState: initialState,
          onChangeCallback: onChangeCallback,
        ),
        child: child,
      );