add static method

InheritedStateWidget add(
  1. InheritedWidget? func(), {
  2. Key? key,
})

Returns an Object containing InheritedWidget and its build function

Implementation

static InheritedStateWidget add(InheritedWidget? Function() func,
        {Key? key}) =>
    InheritedStateWidget(func, key: key);