of static method

confirm the passed context contains BSContainerInheritance, and if there is one, or more pass the nearest BSContainerInheritance in the Widget tree use this function to access BSContainerInheritance's data

Implementation

static BSContainerInheritance of(BuildContext context) {
  return _checkIfInContext(context: context);
}