of static method
Implementation
static CommonConfigurationDropDown of(BuildContext context) {
if (context.dependOnInheritedWidgetOfExactType<
CommonConfigurationDropDown>() ==
null) {
/// Example
/// CommonConfigurationDropDown(
/// child : DropDownWidget(listOfValues: Your list of values show),
///
/// )
throw NotInheritedCommonConfigurationException(
"Not Wrapped CommonConfigurationDropDown class before use");
}
return context
.dependOnInheritedWidgetOfExactType<CommonConfigurationDropDown>()!;
}