wrapProvider method

Widget wrapProvider({
  1. required Widget child,
  2. Key? key,
})

Wraps child with a typed WildnessComponentProvider for this component.

Implementation

Widget wrapProvider({required Widget child, Key? key}) {
  return WildnessComponentProvider<T>(
    key: key,
    data: this as T,
    child: child,
  );
}